class CoroutineServerSocketChannel : CoroutineNetworkChannel
(source)
A co-routine based network channel for stream-oriented connection listening.
Author
Chris Leishman - https://cleishm.github.io/
suspend fun accept(): CoroutineSocketChannel
Accepts a connection made to this channel's socket. |
|
fun bind(local: SocketAddress?): CoroutineServerSocketChannel fun bind(local: SocketAddress?, backlog: Int): CoroutineServerSocketChannel
Binds the channel's socket to a local address and configures the socket to listen for connections. |
|
fun close(): Unit
Closes this channel. |
fun open(group: CoroutineChannelGroup = CommonCoroutineGroup): CoroutineServerSocketChannel
Opens a server-socket channel. |