diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-07-13 16:56:46 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-07-13 16:56:46 +1200 |
commit | 299e1116d2b59b015350d46235a483eb8239e7d0 (patch) | |
tree | b770f408f82eb9d636a7790993a237f5b88f1093 /src/org/traccar | |
parent | 866a7b419a17363594447ccb2186a456f990a00d (diff) | |
download | trackermap-server-299e1116d2b59b015350d46235a483eb8239e7d0.tar.gz trackermap-server-299e1116d2b59b015350d46235a483eb8239e7d0.tar.bz2 trackermap-server-299e1116d2b59b015350d46235a483eb8239e7d0.zip |
Enable UDP for Meiligao (fix #293)
Diffstat (limited to 'src/org/traccar')
-rw-r--r-- | src/org/traccar/protocol/MeiligaoProtocol.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/org/traccar/protocol/MeiligaoProtocol.java b/src/org/traccar/protocol/MeiligaoProtocol.java index 36e1adb6d..70c9a87ec 100644 --- a/src/org/traccar/protocol/MeiligaoProtocol.java +++ b/src/org/traccar/protocol/MeiligaoProtocol.java @@ -15,8 +15,11 @@ */ 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.string.StringDecoder; +import org.jboss.netty.handler.codec.string.StringEncoder; import org.traccar.BaseProtocol; import org.traccar.TrackerServer; @@ -37,6 +40,12 @@ public class MeiligaoProtocol extends BaseProtocol { pipeline.addLast("objectDecoder", new MeiligaoProtocolDecoder(MeiligaoProtocol.this)); } }); + serverList.add(new TrackerServer(new ConnectionlessBootstrap(), this.getName()) { + @Override + protected void addSpecificHandlers(ChannelPipeline pipeline) { + pipeline.addLast("objectDecoder", new MeiligaoProtocolDecoder(MeiligaoProtocol.this)); + } + }); } } |