aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/TrackerServer.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2012-10-07 22:22:40 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2012-10-07 22:22:40 +1300
commitf9da745ca13052396c40c4e8f99da7cd4ed14d3c (patch)
tree1374cac87060c8feee0ca5be178a1f337a39d9c0 /src/org/traccar/TrackerServer.java
parentba8ece8a5b1c784f96c306e3fcbe6c612a1e4f97 (diff)
downloadtrackermap-server-f9da745ca13052396c40c4e8f99da7cd4ed14d3c.tar.gz
trackermap-server-f9da745ca13052396c40c4e8f99da7cd4ed14d3c.tar.bz2
trackermap-server-f9da745ca13052396c40c4e8f99da7cd4ed14d3c.zip
Progress protocol template
Diffstat (limited to 'src/org/traccar/TrackerServer.java')
-rw-r--r--src/org/traccar/TrackerServer.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/org/traccar/TrackerServer.java b/src/org/traccar/TrackerServer.java
index da889d0a3..488186606 100644
--- a/src/org/traccar/TrackerServer.java
+++ b/src/org/traccar/TrackerServer.java
@@ -16,8 +16,10 @@
package org.traccar;
import java.net.InetSocketAddress;
+import java.nio.ByteOrder;
import java.util.concurrent.Executors;
import org.jboss.netty.bootstrap.ServerBootstrap;
+import org.jboss.netty.buffer.HeapChannelBufferFactory;
import org.jboss.netty.channel.Channel;
import org.jboss.netty.channel.group.ChannelGroup;
import org.jboss.netty.channel.group.ChannelGroupFuture;
@@ -60,6 +62,13 @@ public class TrackerServer extends ServerBootstrap {
}
/**
+ * Set endianness
+ */
+ void setEndianness(ByteOrder byteOrder) {
+ setOption("child.bufferFactory", new HeapChannelBufferFactory(byteOrder));
+ }
+
+ /**
* Opened channels
*/
private ChannelGroup allChannels = new DefaultChannelGroup();