aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/ServerManager.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2014-09-07 13:22:51 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2014-09-07 13:22:51 +1200
commit8742c6e9ef538f30531ec3d4245c8e0f59f211f9 (patch)
tree3d1929ed3fcc5c4c13e3cb3e0d088f85d1da6aeb /src/org/traccar/ServerManager.java
parentc469f9dcf20f9724a01654431eb0c05780cb42d2 (diff)
downloadtrackermap-server-8742c6e9ef538f30531ec3d4245c8e0f59f211f9.tar.gz
trackermap-server-8742c6e9ef538f30531ec3d4245c8e0f59f211f9.tar.bz2
trackermap-server-8742c6e9ef538f30531ec3d4245c8e0f59f211f9.zip
Add UDP support for GPS103 (fix #861)
Diffstat (limited to 'src/org/traccar/ServerManager.java')
-rw-r--r--src/org/traccar/ServerManager.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/org/traccar/ServerManager.java b/src/org/traccar/ServerManager.java
index 2f49e0923..1d6dc633f 100644
--- a/src/org/traccar/ServerManager.java
+++ b/src/org/traccar/ServerManager.java
@@ -258,6 +258,14 @@ public class ServerManager {
pipeline.addLast("objectDecoder", new Gps103ProtocolDecoder(ServerManager.this));
}
});
+ serverList.add(new TrackerServer(this, new ConnectionlessBootstrap(), protocol) {
+ @Override
+ protected void addSpecificHandlers(ChannelPipeline pipeline) {
+ pipeline.addLast("stringDecoder", new StringDecoder());
+ pipeline.addLast("stringEncoder", new StringEncoder());
+ pipeline.addLast("objectDecoder", new Gps103ProtocolDecoder(ServerManager.this));
+ }
+ });
}
}