diff options
author | Evgeny S Maksimov <admin@vragam.net> | 2019-01-17 19:05:23 +0300 |
---|---|---|
committer | Evgeny S Maksimov <admin@vragam.net> | 2019-01-17 19:05:23 +0300 |
commit | fc707a69c3c95223ecb8e263d7de32a72ec84af3 (patch) | |
tree | fc0a9b3f75ea0f6077df332a9cbaf6cd75412e97 /src/org/traccar/protocol/NavisProtocol.java | |
parent | ca2cca9355c3b36b2e7ed9ad808db797fa94cb78 (diff) | |
download | trackermap-server-fc707a69c3c95223ecb8e263d7de32a72ec84af3.tar.gz trackermap-server-fc707a69c3c95223ecb8e263d7de32a72ec84af3.tar.bz2 trackermap-server-fc707a69c3c95223ecb8e263d7de32a72ec84af3.zip |
Implemented FLEX 1.0 extension support for Navis (NTCB) protocol
Diffstat (limited to 'src/org/traccar/protocol/NavisProtocol.java')
-rw-r--r-- | src/org/traccar/protocol/NavisProtocol.java | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/org/traccar/protocol/NavisProtocol.java b/src/org/traccar/protocol/NavisProtocol.java index 83a9dc99d..4250ba4dc 100644 --- a/src/org/traccar/protocol/NavisProtocol.java +++ b/src/org/traccar/protocol/NavisProtocol.java @@ -15,19 +15,17 @@ */ package org.traccar.protocol; -import io.netty.handler.codec.LengthFieldBasedFrameDecoder; import org.traccar.BaseProtocol; import org.traccar.PipelineBuilder; import org.traccar.TrackerServer; -import java.nio.ByteOrder; public class NavisProtocol extends BaseProtocol { public NavisProtocol() { addServer(new TrackerServer(false, getName()) { @Override protected void addProtocolHandlers(PipelineBuilder pipeline) { - pipeline.addLast(new LengthFieldBasedFrameDecoder(ByteOrder.LITTLE_ENDIAN, 4096, 12, 2, 2, 0, true)); + pipeline.addLast(new NavisFrameDecoder()); pipeline.addLast(new NavisProtocolDecoder(NavisProtocol.this)); } }); |