|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IoAcceptor
Accepts incoming connection, communicates with clients, and fires events to
IoHandler
s.
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.
Method Summary | |
---|---|
void |
bind(SocketAddress address,
IoHandler handler)
Binds to the specified address and handles incoming
connections with the specified handler . |
void |
unbind(SocketAddress address)
Unbinds from the specified address . |
Methods inherited from interface org.apache.mina.io.IoSessionManager |
---|
getFilterChain |
Methods inherited from interface org.apache.mina.common.SessionManager |
---|
getExceptionMonitor, setExceptionMonitor |
Method Detail |
---|
void bind(SocketAddress address, IoHandler handler) throws IOException
address
and handles incoming
connections with the specified handler
.
IOException
- if failed to bindvoid unbind(SocketAddress address)
address
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |