org.xsocket.stream.io.spi
Interface IAcceptorCallback

Package class diagram package IAcceptorCallback

public interface IAcceptorCallback

Server IO Provider callback

This class is experimental and is subject to change


Method Summary
 void onConnected()
          notifies that the acceptor has been bound to the socket, and accepts incoming connections
 void onConnectionAccepted(IIoHandler ioHandler)
          notifies a new incoming connection
 void onDisconnected()
          notifies that the acceptor has been unbound
 

Method Detail

onConnected

void onConnected()
notifies that the acceptor has been bound to the socket, and accepts incoming connections


onDisconnected

void onDisconnected()
notifies that the acceptor has been unbound


onConnectionAccepted

void onConnectionAccepted(IIoHandler ioHandler)
                          throws java.io.IOException
notifies a new incoming connection

Parameters:
ioHandler - the assigned io handler of the new connetion
Throws:
java.io.IOException - If some other I/O error occurs