aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/Gl200Protocol.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-07-15 13:17:05 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2017-07-15 13:17:05 +1200
commit7c3351939eca27d349417f053ef98a7e4e2668fd (patch)
tree07717d2f308d94aaeb3216f0a432d03a7760b2eb /src/org/traccar/protocol/Gl200Protocol.java
parent7a17135f9b0b1ae127b9cb5ea4f29e0af98a813b (diff)
downloadtrackermap-server-7c3351939eca27d349417f053ef98a7e4e2668fd.tar.gz
trackermap-server-7c3351939eca27d349417f053ef98a7e4e2668fd.tar.bz2
trackermap-server-7c3351939eca27d349417f053ef98a7e4e2668fd.zip
Implement GL200 frame decoder
Diffstat (limited to 'src/org/traccar/protocol/Gl200Protocol.java')
-rw-r--r--src/org/traccar/protocol/Gl200Protocol.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/org/traccar/protocol/Gl200Protocol.java b/src/org/traccar/protocol/Gl200Protocol.java
index b3743042c..3ea371085 100644
--- a/src/org/traccar/protocol/Gl200Protocol.java
+++ b/src/org/traccar/protocol/Gl200Protocol.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2015 - 2016 Anton Tananaev (anton@traccar.org)
+ * Copyright 2015 - 2017 Anton Tananaev (anton@traccar.org)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -21,7 +21,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;
@@ -44,7 +43,7 @@ public class Gl200Protocol extends BaseProtocol {
serverList.add(new TrackerServer(new ServerBootstrap(), getName()) {
@Override
protected void addSpecificHandlers(ChannelPipeline pipeline) {
- pipeline.addLast("frameDecoder", new CharacterDelimiterFrameDecoder(4096, "$", "\0"));
+ pipeline.addLast("frameDecoder", new Gl200FrameDecoder());
pipeline.addLast("stringEncoder", new StringEncoder());
pipeline.addLast("stringDecoder", new StringDecoder());
pipeline.addLast("objectEncoder", new Gl200ProtocolEncoder());