com.ch.odi.net
Interface ConnectionHandler
- public interface ConnectionHandler
Description: A ConnectionHandler handles an incoming network connection.
|
Method Summary |
void |
handle(Socket s)
The implementing class should handle the connection here. |
boolean |
isStopped()
The PortListener uses this method. |
void |
log(String s)
The PortListener sends status messages to this method. |
handle
public void handle(Socket s)
- The implementing class should handle the connection here.
- Parameters:
s - The Socket of the open network connection.
isStopped
public boolean isStopped()
- The PortListener uses this method. When this method return true the PortListener's
listen() method will exit and the Socket will be closed.
log
public void log(String s)
- The PortListener sends status messages to this method. You can ignore them.
Do not rely on anything that is sent here.