|
@@ -36,11 +36,11 @@ public class ServerHandler extends ChannelInboundHandlerAdapter {
|
|
|
/**
|
|
/**
|
|
|
* 往客户端发送消息
|
|
* 往客户端发送消息
|
|
|
*/
|
|
*/
|
|
|
- String helo = "QN=20250530085857223;ST=32;CN=2031;PW=123456;MN=0152316A279055;Flag=5;CP=&&BeginTime=20250529000000;EndTime=20250530000000&&";
|
|
|
|
|
|
|
+ String helo = "##0101QN=20250530085857223;ST=32;CN=2031;PW=123456;MN=0152316A279055;Flag=5;CP=&&BeginTime=20250529000000;EndTime=20250530000000&&";
|
|
|
ByteBuf byteBuf = Unpooled.wrappedBuffer(helo.getBytes());
|
|
ByteBuf byteBuf = Unpooled.wrappedBuffer(helo.getBytes());
|
|
|
ctx.channel().writeAndFlush(byteBuf);
|
|
ctx.channel().writeAndFlush(byteBuf);
|
|
|
System.out.println("首次连接完成!"+byteBuf);
|
|
System.out.println("首次连接完成!"+byteBuf);
|
|
|
- String helo2 = "QN=20250530085857223;ST=32;CN=2031;PW=123456;MN=1234567901234;Flag=5;CP=&&BeginTime=20250529000000;EndTime=20250530000000&&";
|
|
|
|
|
|
|
+ String helo2 = "##0101QN=20250530085857223;ST=32;CN=2031;PW=123456;MN=1234567901234;Flag=5;CP=&&BeginTime=20250529000000;EndTime=20250530000000&&";
|
|
|
ByteBuf byteBuf3 = Unpooled.wrappedBuffer(helo2.getBytes());
|
|
ByteBuf byteBuf3 = Unpooled.wrappedBuffer(helo2.getBytes());
|
|
|
ctx.channel().writeAndFlush(byteBuf3);
|
|
ctx.channel().writeAndFlush(byteBuf3);
|
|
|
}
|
|
}
|