|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Thread | +--swpchat.server.ControlProtocolReceiverThread
class used for normal receiving of controlProtocol
Field Summary | |
private static java.lang.String |
CLS
|
private ControlProtocolHandler |
handler
|
private int |
interruptCounter
|
private java.net.Socket |
socket
|
private int |
timeout
|
private ChatStreamTokenizer |
tokenizer
|
private java.util.Vector |
tokenlist
|
Fields inherited from class java.lang.Thread |
contextClassLoader, daemon, eetop, group, inheritableThreadLocals, inheritedAccessControlContext, MAX_PRIORITY, MIN_PRIORITY, name, NORM_PRIORITY, priority, single_step, stillborn, stopThreadPermission, target, threadInitNumber, threadLocals, threadQ |
Constructor Summary | |
ControlProtocolReceiverThread(ControlProtocolHandler handler,
ChatStreamTokenizer tokenizer,
java.net.Socket socket)
Constructor |
Method Summary | |
int |
getTimeout()
returns the timeout on the socket. |
void |
run()
|
void |
waitForSleepingReceiver()
returns, iff the thread which runs this method owns the monitor on the socket |
void |
wakeUpSleepingReceiver()
releases the monitor on the socket |
Methods inherited from class java.lang.Thread |
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final java.lang.String CLS
private int interruptCounter
private ControlProtocolHandler handler
private ChatStreamTokenizer tokenizer
private java.net.Socket socket
private java.util.Vector tokenlist
private int timeout
Constructor Detail |
public ControlProtocolReceiverThread(ControlProtocolHandler handler, ChatStreamTokenizer tokenizer, java.net.Socket socket)
handler,
- the referenz to the thread, that started this instance of a threadtokenizer,
- the tokenizer on the InputStreamsocket,
- the socket for this ControlProtocolHandlerMethod Detail |
public void run()
run
in class java.lang.Thread
public void waitForSleepingReceiver() throws java.lang.InterruptedException
public void wakeUpSleepingReceiver()
public int getTimeout()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |