aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-07-06 11:32:02 +1200
committerGitHub <noreply@github.com>2016-07-06 11:32:02 +1200
commita648d0b94232a7f66d16ed094ff2414823250117 (patch)
treeb05c777d0df3f24e808b19ade357675059d59690 /src
parentd14cef37937fb64aa54cb497d51afd47b2798fb3 (diff)
parent018dfb03dd3baaf326c6748cb777add9ee3443e4 (diff)
downloadtrackermap-server-a648d0b94232a7f66d16ed094ff2414823250117.tar.gz
trackermap-server-a648d0b94232a7f66d16ed094ff2414823250117.tar.bz2
trackermap-server-a648d0b94232a7f66d16ed094ff2414823250117.zip
Merge pull request #2078 from drecchia/master2-astra-k
UDP support for Astra K protocol
Diffstat (limited to 'src')
-rw-r--r--src/org/traccar/protocol/AstraProtocol.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/org/traccar/protocol/AstraProtocol.java b/src/org/traccar/protocol/AstraProtocol.java
index d0b1d47a5..0ff338599 100644
--- a/src/org/traccar/protocol/AstraProtocol.java
+++ b/src/org/traccar/protocol/AstraProtocol.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.LengthFieldBasedFrameDecoder;
@@ -38,6 +39,12 @@ public class AstraProtocol extends BaseProtocol {
pipeline.addLast("objectDecoder", new AstraProtocolDecoder(AstraProtocol.this));
}
});
+ serverList.add(new TrackerServer(new ConnectionlessBootstrap(), this.getName()) {
+ @Override
+ protected void addSpecificHandlers(ChannelPipeline pipeline) {
+ pipeline.addLast("objectDecoder", new AstraProtocolDecoder(AstraProtocol.this));
+ }
+ });
}
}