|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ServerSocketThreadObserver
This interface declares all listener methods that a required to receive all important server socket events.
Method Summary | |
---|---|
void |
incomingTCPConnection(ServerSocketThread t,
java.net.Socket s)
This method is called if a server socket successfully accepted an incoming TCP connection. |
void |
incomingUDPConnection(ServerSocketThread t,
java.net.DatagramSocket s)
This method is called if a server socket successfully accepted an incoming UDP 'connection'. |
void |
serverSocketClosed(ServerSocketThread t)
This method is called if a socket was closed by user/system request. |
void |
serverSocketException(ServerSocketThread t,
java.nio.channels.IllegalBlockingModeException e)
This method is called if a socket caused a IllegalBlockingModeException by any reason. |
void |
serverSocketException(ServerSocketThread t,
java.io.IOException e)
This method is called if a socket caused an IOException by any reason. |
void |
serverSocketException(ServerSocketThread t,
java.lang.SecurityException e)
This method is called if a socket caused a SecurityException by any reason. |
void |
serverSocketException(ServerSocketThread t,
java.net.SocketTimeoutException e)
This method is called if a socket caused a SocketTimeoutException. |
Method Detail |
---|
void incomingTCPConnection(ServerSocketThread t, java.net.Socket s)
t
- The ServerSocketThread that created and holds the server.s
- The socket for the incoming connection.void incomingUDPConnection(ServerSocketThread t, java.net.DatagramSocket s)
t
- The ServerSocketThread that created and holds the server.s
- The socket for the incoming connection.void serverSocketClosed(ServerSocketThread t)
t
- The ServerSocketThread that created and holds the server.void serverSocketException(ServerSocketThread t, java.io.IOException e)
t
- The ServerSocketThread that created and holds the server.e
- The Exception that was fetched.serverSocketException( ServerSocketThread, SocketTimeoutException )
void serverSocketException(ServerSocketThread t, java.lang.SecurityException e)
t
- The ServerSocketThread that created and holds the server.e
- The Exception that was fetched.void serverSocketException(ServerSocketThread t, java.net.SocketTimeoutException e)
t
- The ServerSocketThread that created and holds the server.e
- The Exception that was fetched.void serverSocketException(ServerSocketThread t, java.nio.channels.IllegalBlockingModeException e)
t
- The ServerSocketThread that created and holds the server.e
- The Exception that was fetched.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |