aboutsummaryrefslogtreecommitdiff
path: root/src/net/sourceforge/opentracking/Server.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2010-07-27 20:26:26 +0000
committerAnton Tananaev <anton.tananaev@gmail.com>2010-07-27 20:26:26 +0000
commitf60fe194659614fcb65339fc1772308f7ced5126 (patch)
treea7af5561b806a18a44ad80acf5d7fef290bd3bd1 /src/net/sourceforge/opentracking/Server.java
parent8c958b95a3b01c1b1b392723e2b35c7575e3a45e (diff)
downloadtraccar-server-f60fe194659614fcb65339fc1772308f7ced5126.tar.gz
traccar-server-f60fe194659614fcb65339fc1772308f7ced5126.tar.bz2
traccar-server-f60fe194659614fcb65339fc1772308f7ced5126.zip
fix gps103 protocol
Diffstat (limited to 'src/net/sourceforge/opentracking/Server.java')
-rw-r--r--src/net/sourceforge/opentracking/Server.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/net/sourceforge/opentracking/Server.java b/src/net/sourceforge/opentracking/Server.java
index acee30037..278a4589a 100644
--- a/src/net/sourceforge/opentracking/Server.java
+++ b/src/net/sourceforge/opentracking/Server.java
@@ -33,6 +33,7 @@ import java.util.logging.Level;
import java.util.logging.LogRecord;
import net.sourceforge.opentracking.helper.NamedParameterStatement;
import org.jboss.netty.handler.codec.string.StringDecoder;
+import org.jboss.netty.handler.codec.string.StringEncoder;
import org.jboss.netty.handler.codec.frame.DelimiterBasedFrameDecoder;
import org.jboss.netty.buffer.ChannelBuffers;
import org.jboss.netty.handler.logging.LoggingHandler;
@@ -241,6 +242,7 @@ public class Server implements DataManager {
server.getPipeline().addLast("frameDecoder",
new DelimiterBasedFrameDecoder(1024, ChannelBuffers.wrappedBuffer(delimiter)));
server.getPipeline().addLast("stringDecoder", new StringDecoder());
+ server.getPipeline().addLast("stringEncoder", new StringEncoder());
server.getPipeline().addLast("objectDecoder", new Gps103ProtocolDecoder(this));
server.getPipeline().addLast("handler", new TrackerEventHandler(this));