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 593826553..2f07e2b50 100644 --- a/src/org/traccar/ServerManager.java +++ b/src/org/traccar/ServerManager.java @@ -147,6 +147,7 @@ public class ServerManager { initAplicomServer("aplicom"); initGotopServer("gotop"); initTotemServer("totem"); + initGatorServer("gator"); // Initialize web server if (Boolean.valueOf(properties.getProperty("http.enable"))) { @@ -944,4 +945,15 @@ public class ServerManager { } } + private void initGatorServer(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 GatorProtocolDecoder(ServerManager.this)); + } + }); + } + } + } |