diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-05-29 09:51:16 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-05-29 09:51:16 +1200 |
commit | 2f3c714d6abcdb62983abe48404afa24a672231b (patch) | |
tree | c3c077c89ab4bcff7db3cb42411daa60800647d9 /src | |
parent | f80d5098d46c4716b26565c6721cbfc54e10521a (diff) | |
parent | 47e2a74fd0fb555ff9aa784f82ab7f6764e55907 (diff) | |
download | trackermap-server-2f3c714d6abcdb62983abe48404afa24a672231b.tar.gz trackermap-server-2f3c714d6abcdb62983abe48404afa24a672231b.tar.bz2 trackermap-server-2f3c714d6abcdb62983abe48404afa24a672231b.zip |
Merge pull request #1223 from ke5stl/patch-1
Add UDP support for GL200 server
Diffstat (limited to 'src')
-rw-r--r-- | src/org/traccar/ServerManager.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/org/traccar/ServerManager.java b/src/org/traccar/ServerManager.java index 6e398b87a..9e5da51b1 100644 --- a/src/org/traccar/ServerManager.java +++ b/src/org/traccar/ServerManager.java @@ -239,6 +239,16 @@ public class ServerManager { pipeline.addLast("objectDecoder", new Gl200ProtocolDecoder(protocol)); } }); + + serverList.add(new TrackerServer(new ConnectionlessBootstrap(), protocol) { + @Override + protected void addSpecificHandlers(ChannelPipeline pipeline) { + + pipeline.addLast("stringDecoder", new StringDecoder()); + pipeline.addLast("stringEncoder", new StringEncoder()); + pipeline.addLast("objectDecoder", new Gl200ProtocolDecoder(protocol)); + } + }); } } |