interface CoroutineNetworkChannel : NetworkChannel
(source)
A co-routine based network channel.
Author
Chris Leishman - https://cleishm.github.io/
abstract val localPort: Int
The port number on the local host to which this socket is bound. |
abstract fun bind(local: SocketAddress?): CoroutineNetworkChannel
Binds the channel's socket to a local address. |
|
abstract fun close(): Unit
Closes this channel. |
|
open fun getAdvertisableAddress(): InetAddress?
Returns the InetAddress corresponding to the interface this channel's socket is bound to. |
|
abstract fun getLocalAddress(): SocketAddress?
Returns the socket address that this channel's socket is bound to. |
|
abstract fun <T : Any> getOption(name: SocketOption<T>): T?
Returns the value of a socket option. |
|
abstract fun isOpen(): Boolean
Indicates if this channel is open. |
|
abstract fun <T : Any> setOption(name: SocketOption<T>, value: T?): NetworkChannel
Sets the value of a socket option. |
|
abstract fun supportedOptions(): Set<SocketOption<*>>
Returns a set of the socket options supported by this channel. |
class CoroutineDatagramChannel : CoroutineByteChannel, ScatteringCoroutineByteChannel, GatheringCoroutineByteChannel, CoroutineNetworkChannel
A co-routine based datagram-oriented network channel. |
|
class CoroutineServerSocketChannel : CoroutineNetworkChannel
A co-routine based network channel for stream-oriented connection listening. |
|
class CoroutineSocketChannel : CoroutineByteChannel, ScatteringCoroutineByteChannel, GatheringCoroutineByteChannel, CoroutineNetworkChannel
A co-routine based stream-oriented network channel. |