diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2019-02-26 18:20:04 -0800 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2019-02-26 18:20:04 -0800 |
commit | 03539bca46f9242ff62db9a6c9ab722ae2bb6a4d (patch) | |
tree | 9e39561432e073da3faa20dbfd31e0e756dda56e /src/org/traccar | |
parent | 34a5823cb19d4b957da1c0bdda426eb8e76950d2 (diff) | |
download | trackermap-server-03539bca46f9242ff62db9a6c9ab722ae2bb6a4d.tar.gz trackermap-server-03539bca46f9242ff62db9a6c9ab722ae2bb6a4d.tar.bz2 trackermap-server-03539bca46f9242ff62db9a6c9ab722ae2bb6a4d.zip |
Enable UDP for Enfora
Diffstat (limited to 'src/org/traccar')
-rw-r--r-- | src/org/traccar/protocol/EnforaProtocol.java | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/EnforaProtocol.java b/src/org/traccar/protocol/EnforaProtocol.java index 3bbbee6a2..f78e4b377 100644 --- a/src/org/traccar/protocol/EnforaProtocol.java +++ b/src/org/traccar/protocol/EnforaProtocol.java @@ -1,5 +1,5 @@ /* - * Copyright 2015 - 2018 Anton Tananaev (anton@traccar.org) + * Copyright 2015 - 2019 Anton Tananaev (anton@traccar.org) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -36,6 +36,13 @@ public class EnforaProtocol extends BaseProtocol { pipeline.addLast(new EnforaProtocolDecoder(EnforaProtocol.this)); } }); + addServer(new TrackerServer(true, getName()) { + @Override + protected void addProtocolHandlers(PipelineBuilder pipeline) { + pipeline.addLast(new EnforaProtocolEncoder()); + pipeline.addLast(new EnforaProtocolDecoder(EnforaProtocol.this)); + } + }); } } |