aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/ServerManager.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-04-18 18:17:54 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-04-18 18:17:54 +1200
commita1a58cc9ee8c1538aad4f40709bd889b7912a9e6 (patch)
treedb8be22c670570d6c79aa9a5c534519a8cc813c7 /src/org/traccar/ServerManager.java
parent936c764e5aa6becc44ba41f25414c454c38b4b9c (diff)
downloadtrackermap-server-a1a58cc9ee8c1538aad4f40709bd889b7912a9e6.tar.gz
trackermap-server-a1a58cc9ee8c1538aad4f40709bd889b7912a9e6.tar.bz2
trackermap-server-a1a58cc9ee8c1538aad4f40709bd889b7912a9e6.zip
Implement Tytan protocol
Diffstat (limited to 'src/org/traccar/ServerManager.java')
-rw-r--r--src/org/traccar/ServerManager.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/org/traccar/ServerManager.java b/src/org/traccar/ServerManager.java
index 28cbac34d..184b54078 100644
--- a/src/org/traccar/ServerManager.java
+++ b/src/org/traccar/ServerManager.java
@@ -184,6 +184,7 @@ public class ServerManager {
initXirgoServer("xirgo");
initCalAmpServer("calamp");
initMtxServer("mtx");
+ initTytanServer("tytan");
initProtocolDetector();
@@ -1380,4 +1381,15 @@ public class ServerManager {
}
}
+ private void initTytanServer(final String protocol) throws SQLException {
+ if (isProtocolEnabled(properties, protocol)) {
+ serverList.add(new TrackerServer(this, new ConnectionlessBootstrap(), protocol) {
+ @Override
+ protected void addSpecificHandlers(ChannelPipeline pipeline) {
+ pipeline.addLast("objectDecoder", new TytanProtocolDecoder(dataManager, protocol, properties));
+ }
+ });
+ }
+ }
+
}