aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2014-12-07 10:04:49 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2014-12-07 10:04:49 +1300
commitd948e0aa5514316293b85eb579606f73bee198b4 (patch)
tree3027ad21f16ac361cab3fa0f64fcf37a99ecf29c
parent9164f1fbdf12ba2ed65839eb83a794fcc602edf8 (diff)
downloadtrackermap-server-d948e0aa5514316293b85eb579606f73bee198b4.tar.gz
trackermap-server-d948e0aa5514316293b85eb579606f73bee198b4.tar.bz2
trackermap-server-d948e0aa5514316293b85eb579606f73bee198b4.zip
Add UDP support for Atrack (fix #6)
-rw-r--r--src/org/traccar/ServerManager.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/org/traccar/ServerManager.java b/src/org/traccar/ServerManager.java
index f50e66fc5..75a569393 100644
--- a/src/org/traccar/ServerManager.java
+++ b/src/org/traccar/ServerManager.java
@@ -890,6 +890,13 @@ public class ServerManager {
pipeline.addLast("objectDecoder", new AtrackProtocolDecoder(dataManager, protocol, properties));
}
});
+ serverList.add(new TrackerServer(this, new ConnectionlessBootstrap(), protocol) {
+ @Override
+ protected void addSpecificHandlers(ChannelPipeline pipeline) {
+ pipeline.addLast("objectDecoder", new AtrackProtocolDecoder(dataManager, protocol, properties));
+ }
+ });
+
}
}