From d948e0aa5514316293b85eb579606f73bee198b4 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sun, 7 Dec 2014 10:04:49 +1300 Subject: Add UDP support for Atrack (fix #6) --- src/org/traccar/ServerManager.java | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src') 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)); + } + }); + } } -- cgit v1.2.3