diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2019-06-05 08:54:12 -0700 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2019-06-05 08:54:12 -0700 |
commit | 514868567c76982018a40918d6594f5d3800e94e (patch) | |
tree | 0d8cf0fe896003a7dd492e67fa9be59ecd3c54b2 /src/main | |
parent | 24f96678d940b44182abfb9a8d51f0f2abdb14bc (diff) | |
download | traccar-server-514868567c76982018a40918d6594f5d3800e94e.tar.gz traccar-server-514868567c76982018a40918d6594f5d3800e94e.tar.bz2 traccar-server-514868567c76982018a40918d6594f5d3800e94e.zip |
Add UDP support
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/org/traccar/protocol/MictrackProtocol.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/protocol/MictrackProtocol.java b/src/main/java/org/traccar/protocol/MictrackProtocol.java index 7de75c396..c8d64fd81 100644 --- a/src/main/java/org/traccar/protocol/MictrackProtocol.java +++ b/src/main/java/org/traccar/protocol/MictrackProtocol.java @@ -34,6 +34,14 @@ public class MictrackProtocol extends BaseProtocol { pipeline.addLast(new MictrackProtocolDecoder(MictrackProtocol.this)); } }); + addServer(new TrackerServer(true, getName()) { + @Override + protected void addProtocolHandlers(PipelineBuilder pipeline) { + pipeline.addLast(new StringEncoder()); + pipeline.addLast(new StringDecoder()); + pipeline.addLast(new MictrackProtocolDecoder(MictrackProtocol.this)); + } + }); } } |