aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/T800xProtocol.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-11-01 19:46:59 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-11-01 19:46:59 +1300
commit82d01c84b4c3d9cb3a3b78371b6a45025276e9e9 (patch)
treea57658ecbe7e4b8c2e91cef0f955b0ed87602879 /src/org/traccar/protocol/T800xProtocol.java
parentbf57bcad19ff56a6c96b1436356fc30beabd3eeb (diff)
downloadtrackermap-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.java2
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));
}
});