|
|
|
@ -22,8 +22,8 @@ public class NettyServerHandler extends ChannelInboundHandlerAdapter { |
|
|
|
|
|
|
|
public void sendMsg(String uuid, String clientKey, String clientValue, ByteBuf byteBuf) { |
|
|
|
if (ids.containsKey(clientValue)) { |
|
|
|
ByteBuf forPrint = byteBuf.copy(); |
|
|
|
logger.info("######## 会话: {}, 客户键值: {}, 客户号: {}, 下行原始报文 ########\n [{}]", uuid, clientKey, clientValue, ByteBufUtil.hexDump(forPrint)); |
|
|
|
// ByteBuf forPrint = byteBuf.copy(); |
|
|
|
// logger.info("######## 会话: {}, 客户键值: {}, 客户号: {}, 下行原始报文 ########\n [{}]", uuid, clientKey, clientValue, ByteBufUtil.hexDump(forPrint)); |
|
|
|
ids.get(clientValue).writeAndFlush(byteBuf); |
|
|
|
} |
|
|
|
} |
|
|
|
|