diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/org/traccar/ServerManager.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/org/traccar/ServerManager.java b/src/org/traccar/ServerManager.java index 6e398b87a..6ea91d860 100644 --- a/src/org/traccar/ServerManager.java +++ b/src/org/traccar/ServerManager.java @@ -239,6 +239,17 @@ public class ServerManager { pipeline.addLast("objectDecoder", new Gl200ProtocolDecoder(protocol)); } }); + + serverList.add(new TrackerServer(new ConnectionlessBootstrap(), protocol) { + @Override + protected void addSpecificHandlers(ChannelPipeline pipeline) { + + pipeline.addLast("frameDecoder",new CharacterDelimiterFrameDecoder(1024, "$", "\0")); + pipeline.addLast("stringDecoder", new StringDecoder()); + pipeline.addLast("stringEncoder", new StringEncoder()); + pipeline.addLast("objectDecoder", new Gl200ProtocolDecoder(protocol)); + } + }); } } |