diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2018-06-25 07:11:18 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2018-06-25 07:11:18 +1200 |
commit | 37b76e674f381b3750ba61b3ccfa423ec0c8a2ec (patch) | |
tree | e2131db3198e9667fac59d94e88d9c53c25d945d /src/org/traccar/protocol/SanavProtocol.java | |
parent | 3c492dc734d79d13ce0ea9d5a8c7667fc82b9377 (diff) | |
download | trackermap-server-37b76e674f381b3750ba61b3ccfa423ec0c8a2ec.tar.gz trackermap-server-37b76e674f381b3750ba61b3ccfa423ec0c8a2ec.tar.bz2 trackermap-server-37b76e674f381b3750ba61b3ccfa423ec0c8a2ec.zip |
Support UDP for Sanav
Diffstat (limited to 'src/org/traccar/protocol/SanavProtocol.java')
-rw-r--r-- | src/org/traccar/protocol/SanavProtocol.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/org/traccar/protocol/SanavProtocol.java b/src/org/traccar/protocol/SanavProtocol.java index acc16f82b..e33a29db7 100644 --- a/src/org/traccar/protocol/SanavProtocol.java +++ b/src/org/traccar/protocol/SanavProtocol.java @@ -39,6 +39,14 @@ public class SanavProtocol extends BaseProtocol { pipeline.addLast("objectDecoder", new SanavProtocolDecoder(SanavProtocol.this)); } }); + serverList.add(new TrackerServer(true, getName()) { + @Override + protected void addProtocolHandlers(PipelineBuilder pipeline) { + pipeline.addLast("stringDecoder", new StringDecoder()); + pipeline.addLast("stringEncoder", new StringEncoder()); + pipeline.addLast("objectDecoder", new SanavProtocolDecoder(SanavProtocol.this)); + } + }); } } |