net.sf.xenqtt.test
Class BlockingTcpEchoServer
java.lang.Object
net.sf.xenqtt.test.BlockingTcpEchoServer
public final class BlockingTcpEchoServer
- extends Object
Server that uses blocking IO to accept new connections and echo any data received back to the sender. The data must be in this format:
- First 2 bytes: big endian length of the remaining paylaod
- Remaining bytes: payload
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
main
public static void main(String[] args)
throws Exception
- Throws:
Exception
Copyright © 2013. All Rights Reserved.