diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2018-06-06 21:56:37 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2018-06-06 21:56:37 +1200 |
commit | 681b8f42633d7c6741e6fbac4308ba25c4aff9fa (patch) | |
tree | 488c6d1d43399899243adebcb565edd0cf294374 /src/org/traccar/protocol/CastelProtocol.java | |
parent | 35bef1115f73da97b15ae3c1de03db1cd6d733c5 (diff) | |
download | trackermap-server-681b8f42633d7c6741e6fbac4308ba25c4aff9fa.tar.gz trackermap-server-681b8f42633d7c6741e6fbac4308ba25c4aff9fa.tar.bz2 trackermap-server-681b8f42633d7c6741e6fbac4308ba25c4aff9fa.zip |
Migrate D, E, F protocols
Diffstat (limited to 'src/org/traccar/protocol/CastelProtocol.java')
-rw-r--r-- | src/org/traccar/protocol/CastelProtocol.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/CastelProtocol.java b/src/org/traccar/protocol/CastelProtocol.java index 3e3c5699e..fcf461fde 100644 --- a/src/org/traccar/protocol/CastelProtocol.java +++ b/src/org/traccar/protocol/CastelProtocol.java @@ -21,6 +21,7 @@ import org.traccar.PipelineBuilder; import org.traccar.TrackerServer; import org.traccar.model.Command; +import java.nio.ByteOrder; import java.util.List; public class CastelProtocol extends BaseProtocol { @@ -37,7 +38,8 @@ public class CastelProtocol extends BaseProtocol { serverList.add(new TrackerServer(false, getName()) { @Override protected void addProtocolHandlers(PipelineBuilder pipeline) { - pipeline.addLast("frameDecoder", new LengthFieldBasedFrameDecoder(1024, 2, 2, -4, 0)); // TODO LE frame decoder + pipeline.addLast("frameDecoder", + new LengthFieldBasedFrameDecoder(ByteOrder.LITTLE_ENDIAN, 1024, 2, 2, -4, 0, true)); pipeline.addLast("objectEncoder", new CastelProtocolEncoder()); pipeline.addLast("objectDecoder", new CastelProtocolDecoder(CastelProtocol.this)); } |