|
@@ -171,7 +171,7 @@ public class YuGuangGpsServerHandler extends HexBinaryAcceptanceHandlerAdapter {
|
|
|
protected void initChannel(SocketChannel ch) throws Exception {
|
|
|
ch.pipeline()
|
|
|
.addLast(new DelimiterBasedFrameDecoder(65535, Unpooled.copiedBuffer(splitBytes)));
|
|
|
- ch.pipeline().addLast(this);
|
|
|
+ ch.pipeline().addLast(YuGuangGpsServerHandler.this);
|
|
|
}
|
|
|
}).option(ChannelOption.SO_BACKLOG, 128).childOption(ChannelOption.SO_KEEPALIVE, true);
|
|
|
ChannelFuture f = b.bind(port).sync();
|