public class NioUdpClient extends AbstractUdpClient
AbstractIoService.ServiceState
config, ioHandlerExecutor
Constructor and Description |
---|
NioUdpClient()
Create a new instance of NioUdpClient
|
NioUdpClient(IoHandlerExecutor ioHandlerExecutor)
Create a new instance of NioUdpClient
|
Modifier and Type | Method and Description |
---|---|
IoFuture<IoSession> |
connect(SocketAddress remoteAddress)
Connects to the specified remote address.
|
IoFuture<IoSession> |
connect(SocketAddress remoteAddress,
SocketAddress localAddress)
Connects to the specified remote address binding to the specified local address.
|
getSessionConfig
fireServiceActivated, fireServiceInactivated, getFilters, getIoHandler, getIoHandlerExecutor, getManagedSessions, initState, isActive, isCreated, isDisposed, isDisposing, isSuspended, setActive, setCreated, setDisposed, setDisposing, setFilters, setIoHandler, setSuspended
public NioUdpClient()
public NioUdpClient(IoHandlerExecutor ioHandlerExecutor)
public IoFuture<IoSession> connect(SocketAddress remoteAddress)
remoteAddress
- Remote SocketAddress
to connectIoFuture
instance which is completed when the connection attempt initiated by this call
succeeds or fails.public IoFuture<IoSession> connect(SocketAddress remoteAddress, SocketAddress localAddress)
connect
in class AbstractUdpClient
remoteAddress
- Remote SocketAddress
to connectlocalAddress
- Local SocketAddress
to use while initiating connection to remote
SocketAddress
IoFuture
instance which is completed when the connection attempt initiated by this call
succeeds or fails.Copyright © 2009–2013 Apache MINA Project. All rights reserved.