diff options
Diffstat (limited to 'src/org/traccar/ServerManager.java')
-rw-r--r-- | src/org/traccar/ServerManager.java | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/org/traccar/ServerManager.java b/src/org/traccar/ServerManager.java index 28cbac34d..184b54078 100644 --- a/src/org/traccar/ServerManager.java +++ b/src/org/traccar/ServerManager.java @@ -184,6 +184,7 @@ public class ServerManager { initXirgoServer("xirgo"); initCalAmpServer("calamp"); initMtxServer("mtx"); + initTytanServer("tytan"); initProtocolDetector(); @@ -1380,4 +1381,15 @@ public class ServerManager { } } + private void initTytanServer(final String protocol) throws SQLException { + if (isProtocolEnabled(properties, protocol)) { + serverList.add(new TrackerServer(this, new ConnectionlessBootstrap(), protocol) { + @Override + protected void addSpecificHandlers(ChannelPipeline pipeline) { + pipeline.addLast("objectDecoder", new TytanProtocolDecoder(dataManager, protocol, properties)); + } + }); + } + } + } |