diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2017-06-17 17:49:57 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2017-06-17 17:49:57 +1200 |
commit | a16e97566a2950d6f5fd98fc2d66d93636f483e0 (patch) | |
tree | b1e4ed03cc2091aa0ce40dbf96fe11511380a49e /src/org/traccar/protocol/Vt200Protocol.java | |
parent | 6ac6d713d1ad34c1e13fae65bf79546961ee3574 (diff) | |
download | trackermap-server-a16e97566a2950d6f5fd98fc2d66d93636f483e0.tar.gz trackermap-server-a16e97566a2950d6f5fd98fc2d66d93636f483e0.tar.bz2 trackermap-server-a16e97566a2950d6f5fd98fc2d66d93636f483e0.zip |
VT200 custom frame decoder
Diffstat (limited to 'src/org/traccar/protocol/Vt200Protocol.java')
-rw-r--r-- | src/org/traccar/protocol/Vt200Protocol.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/org/traccar/protocol/Vt200Protocol.java b/src/org/traccar/protocol/Vt200Protocol.java index 4a8587b21..59c61cb61 100644 --- a/src/org/traccar/protocol/Vt200Protocol.java +++ b/src/org/traccar/protocol/Vt200Protocol.java @@ -17,7 +17,6 @@ package org.traccar.protocol; import org.jboss.netty.bootstrap.ServerBootstrap; import org.jboss.netty.channel.ChannelPipeline; -import org.jboss.netty.handler.codec.frame.LengthFieldBasedFrameDecoder; import org.traccar.BaseProtocol; import org.traccar.TrackerServer; @@ -34,7 +33,7 @@ public class Vt200Protocol extends BaseProtocol { serverList.add(new TrackerServer(new ServerBootstrap(), getName()) { @Override protected void addSpecificHandlers(ChannelPipeline pipeline) { - pipeline.addLast("frameDecoder", new LengthFieldBasedFrameDecoder(1024, 1 + 6 + 2, 2, 2, 0)); + pipeline.addLast("frameDecoder", new Vt200FrameDecoder()); pipeline.addLast("objectDecoder", new Vt200ProtocolDecoder(Vt200Protocol.this)); } }); |