aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/ServerManager.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-01-08 16:24:59 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-01-08 16:24:59 +1300
commit85ee9ee4f04a61e8c9244f3446b9cdf38c318e41 (patch)
tree70271313c932ac10f90858f0e4e2653551327b4a /src/org/traccar/ServerManager.java
parent640effaf6080c95e1142daa26e864f4baafa460a (diff)
downloadtrackermap-server-85ee9ee4f04a61e8c9244f3446b9cdf38c318e41.tar.gz
trackermap-server-85ee9ee4f04a61e8c9244f3446b9cdf38c318e41.tar.bz2
trackermap-server-85ee9ee4f04a61e8c9244f3446b9cdf38c318e41.zip
Support Tramigo legacy protocol
Diffstat (limited to 'src/org/traccar/ServerManager.java')
-rw-r--r--src/org/traccar/ServerManager.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/org/traccar/ServerManager.java b/src/org/traccar/ServerManager.java
index f6504fd27..ca698f977 100644
--- a/src/org/traccar/ServerManager.java
+++ b/src/org/traccar/ServerManager.java
@@ -1290,13 +1290,15 @@ public class ServerManager {
private void initTramigoServer(final String protocol) throws SQLException {
if (isProtocolEnabled(properties, protocol)) {
- serverList.add(new TrackerServer(this, new ServerBootstrap(), protocol) {
+ TrackerServer server = new TrackerServer(this, new ServerBootstrap(), protocol) {
@Override
protected void addSpecificHandlers(ChannelPipeline pipeline) {
- pipeline.addLast("frameDecoder", new LengthFieldBasedFrameDecoder(1024, 6, 2, -8, 0));
+ pipeline.addLast("frameDecoder", new TramigoFrameDecoder());
pipeline.addLast("objectDecoder", new TramigoProtocolDecoder(dataManager, protocol, properties));
}
- });
+ };
+ server.setEndianness(ByteOrder.LITTLE_ENDIAN);
+ serverList.add(server);
}
}