diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-06-19 10:45:05 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-06-19 10:45:05 +1200 |
commit | 278712a8720e1e93e63063d7854a1767dd06c3f2 (patch) | |
tree | a8b679db42df304047f40d5c04d46ce1c534ea20 /src/org/traccar/ServerManager.java | |
parent | 601ffd5cc7e1d6fa66938915264cd2c1d1dbf8bc (diff) | |
download | trackermap-server-278712a8720e1e93e63063d7854a1767dd06c3f2.tar.gz trackermap-server-278712a8720e1e93e63063d7854a1767dd06c3f2.tar.bz2 trackermap-server-278712a8720e1e93e63063d7854a1767dd06c3f2.zip |
Add UDP support for TR900 (fix #1246)
Diffstat (limited to 'src/org/traccar/ServerManager.java')
-rw-r--r-- | src/org/traccar/ServerManager.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/org/traccar/ServerManager.java b/src/org/traccar/ServerManager.java index 44adfadbc..c175a332b 100644 --- a/src/org/traccar/ServerManager.java +++ b/src/org/traccar/ServerManager.java @@ -1288,6 +1288,14 @@ public class ServerManager { pipeline.addLast("objectDecoder", new Tr900ProtocolDecoder(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 Tr900ProtocolDecoder(protocol)); + } + }); } } |