This commit is contained in:
Guoqs
2024-08-01 15:13:21 +08:00
4 changed files with 34 additions and 2 deletions

View File

@@ -68,7 +68,7 @@ public class NettyServerHandler extends ChannelInboundHandlerAdapter {
*/
@Override
public void channelRead(ChannelHandlerContext ctx, Object message) throws Exception {
log.info("加载客户端报文channelRead=== channelId:" + ctx.channel().id() + ", msg:" + message);
// log.info("加载客户端报文channelRead=== channelId:" + ctx.channel().id() + ", msg:" + message);
// 下面可以解析数据保存数据生成返回报文将需要返回报文写入write函数
byte[] msg = (byte[]) message;