diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2013-08-21 22:49:34 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2013-08-21 22:49:34 +1200 |
commit | 0fa340eb62473efa698ddaed783340535f4b2ee0 (patch) | |
tree | f426e32bab14ee1844e760038ca698e74811b77f /src/org/traccar/ServerManager.java | |
parent | ba4cb97520ef9bbdd9be90b0c4307073469739c7 (diff) | |
download | trackermap-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.java | 5 |
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)); } }); |