|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Thread | +--net.sourceforge.jsrvany.test.SimpleServerImplementationThread
This class is a single thread started by SimpleServerImplementation
Copyright (c) 1999 Damian Fauth
Fields inherited from class java.lang.Thread |
MAX_PRIORITY,
MIN_PRIORITY,
NORM_PRIORITY |
Constructor Summary | |
SimpleServerImplementationThread(java.net.Socket sock)
Constructor assigning socket |
Method Summary | |
void |
communicate()
implement the comms |
void |
run()
run this thread |
protected void |
stopRunning()
signal thread to stop running |
protected void |
write(java.lang.String message)
write to the client |
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 SimpleServerImplementationThread(java.net.Socket sock)
sock
- is the Socket objectMethod Detail |
public void run()
public void communicate() throws java.io.IOException
protected void write(java.lang.String message) throws java.io.IOException
message
- is the message to send as a Stringprotected void stopRunning() throws java.io.IOException
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |