|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Thread | +--com.act365.net.echo.EchoServer
EchoServer acts as the server for the TCP echo service.
Usage: EchoServer -p protocol -l localhost localport
.
NB When a TCPJ protocol has been chosen, the server will be created with a
backlog of 1 (as against the standard Berkeley value of 5) because of a limitation
in the current TCPJ implementation.
-p protocol
(optional) defines the socket protocol to be used.
By default, the JDK TCP implementation will be used. The alternatives are
TCPJ, RawTCP or RawTCPJ. (NB The RawTCP protocol will behave identically to TCP
because no DatagramSocket
objects will be instantiated. However, a
DatagramSocket
is always used by TCPJ, so the behaviour of TCPJ
and RawTCPJ will differ).
-l localhost
(optional) should be specified if the protocol
has been set to RawTCPJ. The information will be used to construct the IP header.
localport
is the port to be used by the echo server.
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Method Summary | |
static void |
main(java.lang.String[] args)
|
void |
run()
|
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
public static void main(java.lang.String[] args)
public void run()
run
in class java.lang.Thread
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |