diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2017-11-27 04:35:57 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2017-11-27 04:35:57 +1300 |
commit | cef10080c6012f42823d616b55c6b24215cd9253 (patch) | |
tree | 6a6c6df2afc01e1906d2347200d39a5a921bb7cf /src/org/traccar/protocol/TmgProtocol.java | |
parent | a8454d0449cbd36cb02676fd750b64e7ca19a183 (diff) | |
download | trackermap-server-cef10080c6012f42823d616b55c6b24215cd9253.tar.gz trackermap-server-cef10080c6012f42823d616b55c6b24215cd9253.tar.bz2 trackermap-server-cef10080c6012f42823d616b55c6b24215cd9253.zip |
Extend TMG to support BD312 protocol
Diffstat (limited to 'src/org/traccar/protocol/TmgProtocol.java')
-rw-r--r-- | src/org/traccar/protocol/TmgProtocol.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/org/traccar/protocol/TmgProtocol.java b/src/org/traccar/protocol/TmgProtocol.java index f30d61e9a..c11762cac 100644 --- a/src/org/traccar/protocol/TmgProtocol.java +++ b/src/org/traccar/protocol/TmgProtocol.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.LineBasedFrameDecoder; import org.jboss.netty.handler.codec.string.StringDecoder; import org.jboss.netty.handler.codec.string.StringEncoder; import org.traccar.BaseProtocol; @@ -36,7 +35,7 @@ public class TmgProtocol extends BaseProtocol { serverList.add(new TrackerServer(new ServerBootstrap(), getName()) { @Override protected void addSpecificHandlers(ChannelPipeline pipeline) { - pipeline.addLast("frameDecoder", new LineBasedFrameDecoder(1024)); + pipeline.addLast("frameDecoder", new TmgFrameDecoder()); pipeline.addLast("stringEncoder", new StringEncoder()); pipeline.addLast("stringDecoder", new StringDecoder()); pipeline.addLast("objectDecoder", new TmgProtocolDecoder(TmgProtocol.this)); |