diff options
Diffstat (limited to 'src/org/traccar/ServerManager.java')
-rw-r--r-- | src/org/traccar/ServerManager.java | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/org/traccar/ServerManager.java b/src/org/traccar/ServerManager.java index 6b46079e9..f637f8161 100644 --- a/src/org/traccar/ServerManager.java +++ b/src/org/traccar/ServerManager.java @@ -180,6 +180,7 @@ public class ServerManager { initAutoFonServer("autofon"); initGoSafeServer("gosafe"); initAutoFon45Server("autofon45"); + initBceServer("bce"); initProtocolDetector(); @@ -1322,4 +1323,17 @@ public class ServerManager { }); } } + + private void initBceServer(final String protocol) throws SQLException { + if (isProtocolEnabled(properties, protocol)) { + serverList.add(new TrackerServer(this, new ServerBootstrap(), protocol) { + @Override + protected void addSpecificHandlers(ChannelPipeline pipeline) { + pipeline.addLast("frameDecoder", new BceFrameDecoder()); + pipeline.addLast("objectDecoder", new BceProtocolDecoder(dataManager, protocol, properties)); + } + }); + } + } + } |