aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/ProgressProtocolDecoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-07-12 12:28:28 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-07-12 12:28:28 +1200
commit639b427eba5738534c10f591e285d707e8b060e5 (patch)
treebdafa0f9751c77561ade92ebed272b6d6545ea43 /src/org/traccar/protocol/ProgressProtocolDecoder.java
parent2badcd16f7ae0ce46f7c0cd241c635493d7e6508 (diff)
downloadtrackermap-server-639b427eba5738534c10f591e285d707e8b060e5.tar.gz
trackermap-server-639b427eba5738534c10f591e285d707e8b060e5.tar.bz2
trackermap-server-639b427eba5738534c10f591e285d707e8b060e5.zip
Re-factor decoder interface
Diffstat (limited to 'src/org/traccar/protocol/ProgressProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/ProgressProtocolDecoder.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/org/traccar/protocol/ProgressProtocolDecoder.java b/src/org/traccar/protocol/ProgressProtocolDecoder.java
index 4c3e58ddc..bb29532bf 100644
--- a/src/org/traccar/protocol/ProgressProtocolDecoder.java
+++ b/src/org/traccar/protocol/ProgressProtocolDecoder.java
@@ -17,7 +17,8 @@ package org.traccar.protocol;
import java.nio.ByteOrder;
import java.nio.charset.Charset;
-import java.util.Calendar;
+import java.net.SocketAddress;
+import java.util.Calendar;
import java.util.LinkedList;
import java.util.List;
import java.util.TimeZone;
@@ -66,7 +67,7 @@ public class ProgressProtocolDecoder extends BaseProtocolDecoder {
}
@Override
- protected Object decode(ChannelHandlerContext ctx, Channel channel, Object msg) throws Exception {
+ protected Object decode(Channel channel, SocketAddress remoteAddress, Object msg) throws Exception {
ChannelBuffer buf = (ChannelBuffer) msg;
int type = buf.readUnsignedShort();