ServerSocket

interface ServerSocket : ASocket, ABoundSocket, Acceptable<Socket>

Represents a server bound socket ready for accepting connections

Functions

Link copied to clipboard
abstract suspend fun accept(): Socket

accepts socket connection or suspends if none yet available.

Link copied to clipboard
open override fun dispose()

Properties

Link copied to clipboard
abstract val localAddress: SocketAddress

Local socket address. Could throw an exception if no address bound yet.

Link copied to clipboard
abstract val socketContext: Job

Represents a socket lifetime, completes at socket closure