| | |
| | | public static int HEART_BEAT_TIME = 30;//心跳间隔时间 |
| | | |
| | | |
| | | public static String MSG_START = "3C42485A4E3E";//<BHZN> |
| | | public static String MSG_START = "";//<BHZN> 3C42485A4E3E |
| | | public static String MSG_START2 = "AA"; |
| | | public static String MSG_END = "<END>";//<END> |
| | | public static String MSG_END_16 = "3C454E443E";//<END>3C454E443E |
| | | public static String MSG_END_16 = "";//<END>3C454E443E |
| | | public static final String CHARSET = "UTF-8"; |
| | | |
| | | |
| | |
| | | return BytesUtil.intToHexStr(256 - check).substring(2); |
| | | } |
| | | |
| | | |
| | | public static void main(String[] args) { |
| | | System.out.println(getCheck("AA630A0001830108")); |
| | | } |
| | | |
| | | |
| | | public static void addSession(IoSession session) { |
| | | contextIoSession.put(DEFAULT_MAC_ID, session); |
| | | } |