aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/SanavProtocol.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/protocol/SanavProtocol.java')
-rw-r--r--src/org/traccar/protocol/SanavProtocol.java8
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));
+ }
+ });
}
}