|  |  | 
 |  |  | package org.yzh.client; | 
 |  |  |  | 
 |  |  | import io.github.yezhihao.netmc.session.Session; | 
 |  |  | import io.swagger.models.auth.In; | 
 |  |  | import org.yzh.client.netty.ClientConfig; | 
 |  |  | import org.yzh.client.netty.HandlerMapping; | 
 |  |  | import org.yzh.client.netty.TCPClient; | 
 |  |  | 
 |  |  |     public static final ClientConfig jtConfig = new ClientConfig.Builder() | 
 |  |  | //            .setIp("server.demo.natool.cn") | 
 |  |  | //            .setPort(31146) | 
 |  |  |             .setIp("127.0.0.1") | 
 |  |  |             .setIp("64a6882b1b1d7823.natapp.cc") | 
 |  |  |             .setPort(7611) | 
 |  |  |             .setMaxFrameLength(2 + 21 + 1023 * 2 + 1 + 2) | 
 |  |  |             .setDelimiters(new byte[]{0x7e}) | 
 |  |  | 
 |  |  |             alarmBSD.setFileTotal(4); | 
 |  |  |             alarmBSD.setReserved(4); | 
 |  |  |  | 
 |  |  |             Map<Long, Object> attributes = new TreeMap<>(); | 
 |  |  |             attributes.put(Long.valueOf(AlarmADAS.key), alarmADAS); | 
 |  |  |             attributes.put(Long.valueOf(AlarmDSM.key), alarmDSM); | 
 |  |  |             attributes.put(Long.valueOf(AlarmTPMS.key), alarmTPMS); | 
 |  |  |             attributes.put(Long.valueOf(AlarmBSD.key), alarmBSD); | 
 |  |  |             Map<Integer, Object> attributes = new TreeMap<>(); | 
 |  |  |             attributes.put(Integer.valueOf(AlarmADAS.key), alarmADAS); | 
 |  |  |             attributes.put(Integer.valueOf(AlarmDSM.key), alarmDSM); | 
 |  |  |             attributes.put(Integer.valueOf(AlarmTPMS.key), alarmTPMS); | 
 |  |  |             attributes.put(Integer.valueOf(AlarmBSD.key), alarmBSD); | 
 |  |  |  | 
 |  |  |             message.setAttributes(attributes); | 
 |  |  |         } |