Interface IoAcceptor

All Superinterfaces:
IoService
All Known Implementing Classes:
BaseIoAcceptor, DatagramAcceptor, DatagramAcceptorDelegate, DelegatedIoAcceptor, SocketAcceptor, VmPipeAcceptor

public interface IoAcceptor extends IoService
Accepts incoming connection, communicates with clients, and fires events to IoHandlers.

Please refer to EchoServer example.

You should bind to the desired socket address to accept incoming connections, and then events for incoming connections will be sent to the specified default IoHandler.

Threads accept incoming connections start automatically when bind(SocketAddress, IoHandler) is invoked, and stop when all addresses are unbound.