class CoroutineSocketChannel : CoroutineByteChannel, ScatteringCoroutineByteChannel, GatheringCoroutineByteChannel, CoroutineNetworkChannel
(source)
A co-routine based stream-oriented network channel.
val isConnected: Boolean
Indicates whether this channel is connected. |
|
val remoteAddress: SocketAddress
Get the remote address to which this channel is connected. |
fun bind(local: SocketAddress?): CoroutineSocketChannel
Binds the channel's socket to a local address. |
|
fun close(): Unit
Closes this channel. |
|
suspend fun connect(remote: SocketAddress): CoroutineSocketChannel
Connect this channel. |
|
fun shutdownInput(): CoroutineSocketChannel
Shutdown the connection for reading without closing the channel. |
|
fun shutdownOutput(): CoroutineSocketChannel
Shutdown the connection for writing without closing the channel. |
fun open(group: CoroutineChannelGroup = CommonCoroutineGroup): CoroutineSocketChannel
Opens a socket channel. |