public interface IoServer
Will crate a new IoSession
for each new incoming connection.
Modifier and Type | Method and Description |
---|---|
void |
bind(int port)
Binds the server to the specified port.
|
void |
bind(SocketAddress localAddress)
Binds to the specified local addresses and start to accept incoming connections.
|
SocketAddress |
getBoundAddress()
Returns the local addresses which are bound currently.
|
void |
unbind()
Unbinds from the local addresses that this service is bound to and stops to accept incoming connections.
|
SocketAddress getBoundAddress()
void bind(SocketAddress localAddress)
void bind(int port)
port
- the local TCP port to bind.void unbind()
Copyright © 2009–2013 Apache MINA Project. All rights reserved.