diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-11-01 19:46:59 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-11-01 19:46:59 +1300 |
commit | 82d01c84b4c3d9cb3a3b78371b6a45025276e9e9 (patch) | |
tree | a57658ecbe7e4b8c2e91cef0f955b0ed87602879 /src/org/traccar/protocol/T800xProtocol.java | |
parent | bf57bcad19ff56a6c96b1436356fc30beabd3eeb (diff) | |
download | trackermap-server-82d01c84b4c3d9cb3a3b78371b6a45025276e9e9.tar.gz trackermap-server-82d01c84b4c3d9cb3a3b78371b6a45025276e9e9.tar.bz2 trackermap-server-82d01c84b4c3d9cb3a3b78371b6a45025276e9e9.zip |
Clean up T800X protocol decoder
Diffstat (limited to 'src/org/traccar/protocol/T800xProtocol.java')
-rw-r--r-- | src/org/traccar/protocol/T800xProtocol.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/org/traccar/protocol/T800xProtocol.java b/src/org/traccar/protocol/T800xProtocol.java index 599123df2..f98dfc943 100644 --- a/src/org/traccar/protocol/T800xProtocol.java +++ b/src/org/traccar/protocol/T800xProtocol.java @@ -17,6 +17,7 @@ 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; @@ -33,6 +34,7 @@ public class T800xProtocol extends BaseProtocol { serverList.add(new TrackerServer(new ServerBootstrap(), getName()) { @Override protected void addSpecificHandlers(ChannelPipeline pipeline) { + pipeline.addLast("frameDecoder", new LengthFieldBasedFrameDecoder(1024, 3, 2, -5, 0)); pipeline.addLast("objectDecoder", new T800xProtocolDecoder(T800xProtocol.this)); } }); |