diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2017-02-21 22:53:25 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2017-02-21 22:53:25 +1300 |
commit | de43b1203b70a27c2833129983b86253371834d9 (patch) | |
tree | 2d6af2c99accc480ee76916c3f7ece9013f6bfd3 /src/org/traccar/protocol/PricolProtocol.java | |
parent | 6838a1264922e656da2ed8b4ce390fa17e039571 (diff) | |
download | trackermap-server-de43b1203b70a27c2833129983b86253371834d9.tar.gz trackermap-server-de43b1203b70a27c2833129983b86253371834d9.tar.bz2 trackermap-server-de43b1203b70a27c2833129983b86253371834d9.zip |
Add UDP support for Pricol protocol
Diffstat (limited to 'src/org/traccar/protocol/PricolProtocol.java')
-rw-r--r-- | src/org/traccar/protocol/PricolProtocol.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/org/traccar/protocol/PricolProtocol.java b/src/org/traccar/protocol/PricolProtocol.java index 924c7c1d6..0005dc3c1 100644 --- a/src/org/traccar/protocol/PricolProtocol.java +++ b/src/org/traccar/protocol/PricolProtocol.java @@ -15,6 +15,7 @@ */ package org.traccar.protocol; +import org.jboss.netty.bootstrap.ConnectionlessBootstrap; import org.jboss.netty.bootstrap.ServerBootstrap; import org.jboss.netty.channel.ChannelPipeline; import org.jboss.netty.handler.codec.frame.FixedLengthFrameDecoder; @@ -38,6 +39,12 @@ public class PricolProtocol extends BaseProtocol { pipeline.addLast("objectDecoder", new PricolProtocolDecoder(PricolProtocol.this)); } }); + serverList.add(new TrackerServer(new ConnectionlessBootstrap(), getName()) { + @Override + protected void addSpecificHandlers(ChannelPipeline pipeline) { + pipeline.addLast("objectDecoder", new PricolProtocolDecoder(PricolProtocol.this)); + } + }); } } |