|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ConnectionListener
ConnectionListener is a way to tell when a new connection has been made or an old one lost. To use a ConnectionListener, simply call: ServerBase.addConnectionListener(ConnectionListener);
Method Summary | |
---|---|
void |
gotConnection(java.net.Socket socket)
Recieved a connection. |
void |
lostConnection(java.net.Socket socket)
Lost an old connection. |
Method Detail |
---|
void gotConnection(java.net.Socket socket)
socket
- The socket of the new connection.void lostConnection(java.net.Socket socket)
socket
- The previous socket connection.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |