diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2014-12-07 10:04:49 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2014-12-07 10:04:49 +1300 |
commit | d948e0aa5514316293b85eb579606f73bee198b4 (patch) | |
tree | 3027ad21f16ac361cab3fa0f64fcf37a99ecf29c /src/org | |
parent | 9164f1fbdf12ba2ed65839eb83a794fcc602edf8 (diff) | |
download | traccar-server-d948e0aa5514316293b85eb579606f73bee198b4.tar.gz traccar-server-d948e0aa5514316293b85eb579606f73bee198b4.tar.bz2 traccar-server-d948e0aa5514316293b85eb579606f73bee198b4.zip |
Add UDP support for Atrack (fix #6)
Diffstat (limited to 'src/org')
-rw-r--r-- | src/org/traccar/ServerManager.java | 7 |
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)); + } + }); + } } |