aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2019-09-25 00:19:40 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2019-09-25 00:20:03 -0700
commit3f4053552bde461ba2ef6686a83c08e2b1122472 (patch)
tree48f256cb0d23c7e91b7cb21c2587145971f201db /src/main/java/org/traccar
parent5f4ccee4ee552920b8ef1ee0cd385f83ca68fa27 (diff)
downloadtrackermap-server-3f4053552bde461ba2ef6686a83c08e2b1122472.tar.gz
trackermap-server-3f4053552bde461ba2ef6686a83c08e2b1122472.tar.bz2
trackermap-server-3f4053552bde461ba2ef6686a83c08e2b1122472.zip
Convert to UDP protocol
Diffstat (limited to 'src/main/java/org/traccar')
-rw-r--r--src/main/java/org/traccar/protocol/RstProtocol.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/main/java/org/traccar/protocol/RstProtocol.java b/src/main/java/org/traccar/protocol/RstProtocol.java
index 1e164866f..10d11d493 100644
--- a/src/main/java/org/traccar/protocol/RstProtocol.java
+++ b/src/main/java/org/traccar/protocol/RstProtocol.java
@@ -18,17 +18,15 @@ package org.traccar.protocol;
import io.netty.handler.codec.string.StringDecoder;
import io.netty.handler.codec.string.StringEncoder;
import org.traccar.BaseProtocol;
-import org.traccar.CharacterDelimiterFrameDecoder;
import org.traccar.PipelineBuilder;
import org.traccar.TrackerServer;
public class RstProtocol extends BaseProtocol {
public RstProtocol() {
- addServer(new TrackerServer(false, getName()) {
+ addServer(new TrackerServer(true, getName()) {
@Override
protected void addProtocolHandlers(PipelineBuilder pipeline) {
- pipeline.addLast(new CharacterDelimiterFrameDecoder(1024, "FIM;"));
pipeline.addLast(new StringEncoder());
pipeline.addLast(new StringDecoder());
pipeline.addLast(new RstProtocolDecoder(RstProtocol.this));