|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gumbo.net.NetThreadPrinter
A net thread listener that prints all events to a writer.
Constructor Summary | |
NetThreadPrinter(java.io.PrintWriter writer)
|
Method Summary | |
void |
socketConnect(NetThread thread,
java.lang.String msg)
Called when a socket connection is made (to the server if a client thread, and to a client if a server thread). |
void |
socketDisconnect(NetThread thread,
java.lang.String msg)
Called when a socket connection is broken (to the server if a client thread, and to a client if a server thread). |
void |
socketFailure(NetThread thread,
java.lang.String msg)
Called when socket connection (client) or listen (server) attempt failed. |
void |
threadDone(NetThread thread,
java.lang.String msg)
Called when the thread (client or server) is done. |
void |
threadReady(NetThread thread,
java.lang.String msg)
Called when the thread is ready for socket connection (i.e. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public NetThreadPrinter(java.io.PrintWriter writer)
writer
- Status writer. Null if none.Method Detail |
public void socketConnect(NetThread thread, java.lang.String msg)
NetThreadListener
socketConnect
in interface NetThreadListener
thread
- The host thread. Never null.msg
- Text message describing the event. Null if none.public void socketDisconnect(NetThread thread, java.lang.String msg)
NetThreadListener
socketDisconnect
in interface NetThreadListener
thread
- The host thread. Never null.msg
- Text message describing the event. Null if none.public void socketFailure(NetThread thread, java.lang.String msg)
NetThreadListener
socketFailure
in interface NetThreadListener
thread
- The host thread. Never null.msg
- Text message describing the event. Null if none.
present. Null if none.public void threadReady(NetThread thread, java.lang.String msg)
NetThreadListener
threadReady
in interface NetThreadListener
thread
- The host thread. Never null.msg
- Text message describing the event. Null if none.public void threadDone(NetThread thread, java.lang.String msg)
NetThreadListener
threadDone
in interface NetThreadListener
thread
- The host thread. Never null.msg
- Text message describing the event. Null if none.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |