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 2f07e2b50..f5130816f 100644 --- a/src/org/traccar/ServerManager.java +++ b/src/org/traccar/ServerManager.java @@ -148,6 +148,7 @@ public class ServerManager { initGotopServer("gotop"); initTotemServer("totem"); initGatorServer("gator"); + initNoranServer("noran"); // Initialize web server if (Boolean.valueOf(properties.getProperty("http.enable"))) { @@ -956,4 +957,15 @@ public class ServerManager { } } + private void initNoranServer(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 NoranProtocolDecoder(ServerManager.this)); + } + }); + } + } + } |