public interface DataChannelFactory
| Modifier and Type | Interface and Description |
|---|---|
static class |
DataChannelFactory.ConnectOptions
A collection of options to apply to a connection.
|
| Modifier and Type | Method and Description |
|---|---|
DataChannel |
acceptChannel(SocketChannel socketChannel)
Creates a DataChannel from an newly accepted socketChannel
|
DataChannel |
connect(InetSocketAddress addr,
InetSocketAddress localAddr,
DataChannelFactory.ConnectOptions connectOptions)
Creates a DataChannel that connects to the specified address,
with the specified options.
|
DataChannel acceptChannel(SocketChannel socketChannel)
socketChannel - the newly accepted SocketChannelDataChannel connect(InetSocketAddress addr, InetSocketAddress localAddr, DataChannelFactory.ConnectOptions connectOptions) throws IOException
addr - The remote address to which the connection should be made.
It is possible for a DataChannelFactory implementation to
proxy this connection through an intermediary.localAddr - the local address the socket will be bound to. A null
value leaves the choice open to the OS.connectOptions - the collection of connection options to be
applied to the connection.IOExceptionCopyright © 2024. All rights reserved.