aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/Tk103Protocol.java
diff options
context:
space:
mode:
authorValerii Vyshniak <valeravi@vi-soft.com.ua>2017-11-22 02:05:59 +0100
committerValerii Vyshniak <valeravi@vi-soft.com.ua>2017-11-22 02:05:59 +0100
commite5a8be1987aecf3735801165ee19c1bcdd4fcc05 (patch)
tree2704face5d94dd5aab2d4d224578ce33fab05dc9 /src/org/traccar/protocol/Tk103Protocol.java
parent8d8bab8a2df30629fb612b0573b2bd5f46c4b05e (diff)
downloadtrackermap-server-e5a8be1987aecf3735801165ee19c1bcdd4fcc05.tar.gz
trackermap-server-e5a8be1987aecf3735801165ee19c1bcdd4fcc05.tar.bz2
trackermap-server-e5a8be1987aecf3735801165ee19c1bcdd4fcc05.zip
T580W: review comments fixes 3, re-implemented tk103 frame decoder
Diffstat (limited to 'src/org/traccar/protocol/Tk103Protocol.java')
-rw-r--r--src/org/traccar/protocol/Tk103Protocol.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/org/traccar/protocol/Tk103Protocol.java b/src/org/traccar/protocol/Tk103Protocol.java
index 3360dab32..6ef9c0a56 100644
--- a/src/org/traccar/protocol/Tk103Protocol.java
+++ b/src/org/traccar/protocol/Tk103Protocol.java
@@ -22,7 +22,6 @@ import org.jboss.netty.channel.ChannelPipeline;
import org.jboss.netty.handler.codec.string.StringDecoder;
import org.jboss.netty.handler.codec.string.StringEncoder;
import org.traccar.BaseProtocol;
-import org.traccar.CharacterDelimiterFrameDecoder;
import org.traccar.TrackerServer;
import org.traccar.model.Command;
@@ -56,7 +55,7 @@ public class Tk103Protocol extends BaseProtocol {
serverList.add(new TrackerServer(new ServerBootstrap(), getName()) {
@Override
protected void addSpecificHandlers(ChannelPipeline pipeline) {
- pipeline.addLast("frameDecoder", new CharacterDelimiterFrameDecoder(1024, ')'));
+ pipeline.addLast("frameDecoder", new Tk103FrameDecoder());
pipeline.addLast("stringDecoder", new StringDecoder());
pipeline.addLast("stringEncoder", new StringEncoder());
pipeline.addLast("objectEncoder", new Tk103ProtocolEncoder());