aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2021-01-12 20:52:25 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2021-01-12 20:52:25 -0800
commit94d34a85f2ee87418618779a4399c9a908900c63 (patch)
treea524d509ae4a3a6cec1d26659b3eb2908e34b2b9 /src/main
parent9d91c66d6364f664832ebb7219841a2c7832c943 (diff)
downloadtraccar-server-94d34a85f2ee87418618779a4399c9a908900c63.tar.gz
traccar-server-94d34a85f2ee87418618779a4399c9a908900c63.tar.bz2
traccar-server-94d34a85f2ee87418618779a4399c9a908900c63.zip
Little endian length
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/org/traccar/protocol/DolphinProtocol.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/DolphinProtocol.java b/src/main/java/org/traccar/protocol/DolphinProtocol.java
index b77a80a85..83c127940 100644
--- a/src/main/java/org/traccar/protocol/DolphinProtocol.java
+++ b/src/main/java/org/traccar/protocol/DolphinProtocol.java
@@ -20,13 +20,15 @@ import org.traccar.BaseProtocol;
import org.traccar.PipelineBuilder;
import org.traccar.TrackerServer;
+import java.nio.ByteOrder;
+
public class DolphinProtocol extends BaseProtocol {
public DolphinProtocol() {
addServer(new TrackerServer(false, getName()) {
@Override
protected void addProtocolHandlers(PipelineBuilder pipeline) {
- pipeline.addLast(new LengthFieldBasedFrameDecoder(4096, 20, 4));
+ pipeline.addLast(new LengthFieldBasedFrameDecoder(ByteOrder.LITTLE_ENDIAN, 4096, 20, 4, 0, 0, true));
pipeline.addLast(new DolphinProtocolDecoder(DolphinProtocol.this));
}
});