ikrs.yuccasrv.socketmngr
Interface ServerSocketThreadObserver

All Known Implementing Classes:
BindManager

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

incomingTCPConnection

void incomingTCPConnection(ServerSocketThread t,
                           java.net.Socket s)
This method is called if a server socket successfully accepted an incoming TCP connection.

Parameters:
t - The ServerSocketThread that created and holds the server.
s - The socket for the incoming connection.

incomingUDPConnection

void incomingUDPConnection(ServerSocketThread t,
                           java.net.DatagramSocket s)
This method is called if a server socket successfully accepted an incoming UDP 'connection'.

Parameters:
t - The ServerSocketThread that created and holds the server.
s - The socket for the incoming connection.

serverSocketClosed

void serverSocketClosed(ServerSocketThread t)
This method is called if a socket was closed by user/system request.

Parameters:
t - The ServerSocketThread that created and holds the server.

serverSocketException

void serverSocketException(ServerSocketThread t,
                           java.io.IOException e)
This method is called if a socket caused an IOException by any reason. Problably the socket will not be working properly if this event was fired. Note that SocketTimeoutExceptions are reported thorugh a different event.

Parameters:
t - The ServerSocketThread that created and holds the server.
e - The Exception that was fetched.
See Also:
serverSocketException( ServerSocketThread, SocketTimeoutException )

serverSocketException

void serverSocketException(ServerSocketThread t,
                           java.lang.SecurityException e)
This method is called if a socket caused a SecurityException by any reason.

Parameters:
t - The ServerSocketThread that created and holds the server.
e - The Exception that was fetched.

serverSocketException

void serverSocketException(ServerSocketThread t,
                           java.net.SocketTimeoutException e)
This method is called if a socket caused a SocketTimeoutException.

Parameters:
t - The ServerSocketThread that created and holds the server.
e - The Exception that was fetched.

serverSocketException

void serverSocketException(ServerSocketThread t,
                           java.nio.channels.IllegalBlockingModeException e)
This method is called if a socket caused a IllegalBlockingModeException by any reason.

Parameters:
t - The ServerSocketThread that created and holds the server.
e - The Exception that was fetched.