aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/ServerManager.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2013-08-21 22:49:34 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2013-08-21 22:49:34 +1200
commit0fa340eb62473efa698ddaed783340535f4b2ee0 (patch)
treef426e32bab14ee1844e760038ca698e74811b77f /src/org/traccar/ServerManager.java
parentba4cb97520ef9bbdd9be90b0c4307073469739c7 (diff)
downloadtrackermap-server-0fa340eb62473efa698ddaed783340535f4b2ee0.tar.gz
trackermap-server-0fa340eb62473efa698ddaed783340535f4b2ee0.tar.bz2
trackermap-server-0fa340eb62473efa698ddaed783340535f4b2ee0.zip
Support TianQIN protocol
Diffstat (limited to 'src/org/traccar/ServerManager.java')
-rw-r--r--src/org/traccar/ServerManager.java5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/org/traccar/ServerManager.java b/src/org/traccar/ServerManager.java
index 95f8c7b58..d149e3ea8 100644
--- a/src/org/traccar/ServerManager.java
+++ b/src/org/traccar/ServerManager.java
@@ -401,10 +401,7 @@ public class ServerManager {
serverList.add(new TrackerServer(this, new ServerBootstrap(), protocol) {
@Override
protected void addSpecificHandlers(ChannelPipeline pipeline) {
- byte delimiter[] = { (byte) '#' };
- pipeline.addLast("frameDecoder",
- new DelimiterBasedFrameDecoder(1024, ChannelBuffers.wrappedBuffer(delimiter)));
- pipeline.addLast("stringDecoder", new StringDecoder());
+ pipeline.addLast("frameDecoder", new H02FrameDecoder());
pipeline.addLast("objectDecoder", new H02ProtocolDecoder(ServerManager.this));
}
});