gumbo.net
Interface NetThreadListener

All Known Implementing Classes:
ClientWindow, NetThreadPrinter, ProxyWindow, ServerWindow, TestClientWindow, TestServerWindow

public interface NetThreadListener

Interface for listeners of network application thread events.

Version:
$Revision: 1.5 $
Author:
Jon Barrilleaux (jonb@jmbaai.com) of JMB and Associates Inc.

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.
 

Method Detail

socketConnect

public 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).

Parameters:
thread - The host thread. Never null.
msg - Text message describing the event. Null if none.

socketDisconnect

public 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).

Parameters:
thread - The host thread. Never null.
msg - Text message describing the event. Null if none.

socketFailure

public void socketFailure(NetThread thread,
                          java.lang.String msg)
Called when socket connection (client) or listen (server) attempt failed.

Parameters:
thread - The host thread. Never null.
msg - Text message describing the event. Null if none. present. Null if none.

threadReady

public void threadReady(NetThread thread,
                        java.lang.String msg)
Called when the thread is ready for socket connection (i.e. client or server connect loop is beginning).

Parameters:
thread - The host thread. Never null.
msg - Text message describing the event. Null if none.

threadDone

public void threadDone(NetThread thread,
                       java.lang.String msg)
Called when the thread (client or server) is done.

Parameters:
thread - The host thread. Never null.
msg - Text message describing the event. Null if none.