Package com.iizix.comm
Interface ServerSocketCommListener
public interface ServerSocketCommListenerThe server socket communication listener.- Author:
- Christopher Mindus
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonAcceptCommError(ServerSocketComm comm, java.io.IOException e)Called when the accept new communication gets an error.voidonCommAccept(ServerSocketComm comm, java.nio.channels.SocketChannel socketChannel)Called when a connection should be accepted or rejected.voidonCommClosed(ServerSocketComm comm)Called when the communication link is closed.voidonCommError(ServerSocketComm comm, java.io.IOException e)Called when the communication link gets an error.voidonCommOpen(ServerSocketComm comm)Called when the communication link is opened.
Method Detail
onCommOpen
void onCommOpen(ServerSocketComm comm)
Called when the communication link is opened.- Parameters:
comm- The server socket communication instance.
onCommAccept
void onCommAccept(ServerSocketComm comm, java.nio.channels.SocketChannel socketChannel)
Called when a connection should be accepted or rejected.- Parameters:
comm- The server socket communication instance.
onAcceptCommError
void onAcceptCommError(ServerSocketComm comm, java.io.IOException e)
Called when the accept new communication gets an error.- Parameters:
comm- The server socket communication instance.e- The exception.
onCommError
void onCommError(ServerSocketComm comm, java.io.IOException e)
Called when the communication link gets an error.- Parameters:
comm- The server socket communication instance.e- The exception.
onCommClosed
void onCommClosed(ServerSocketComm comm)
Called when the communication link is closed.- Parameters:
comm- The server socket communication instance.