|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Thread | +--jclass.SleepingThread | +--jclass.ServerTCPThread
A thread that runs as server on a specified port and accepts incomming
TCP/IP connect requests.It then puts the incomming socket into a queue
which should be parsed by one or more specific protocol threads that
treat the requests.
Written: Radu Sion
Version: 0.16
Source: ServerTCPThread.java
Visit
Smart Software
DatagramServerThread
,
SimpleQueue
,
ServerTCPProtocolThread
Fields inherited from class jclass.SleepingThread |
DEFAULT_SLEEP |
Fields inherited from class java.lang.Thread |
MAX_PRIORITY,
MIN_PRIORITY,
NORM_PRIORITY |
Constructor Summary | |
ServerTCPThread(int port,
SimpleQueue squeue,
long sleep)
Constructs a thread object. |
Method Summary | |
void |
run()
|
Methods inherited from class jclass.SleepingThread |
getSleep,
mysleep,
pause,
pause,
setSleep |
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 |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
"> Constructor Detail |
public ServerTCPThread(int port, SimpleQueue squeue, long sleep)
port
- Port on which to listen for connectionssqueue
- Queue where to insert new incomming connectionssleep
- Internal sleepMethod Detail |
public void run()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |