ServerSocket

interface ServerSocket : 
    ASocket,
    ABoundSocket,
    Acceptable<Socket>

Represents a server bound socket ready for accepting connections

Inherited Properties

localAddress

abstract val localAddress: SocketAddress

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

socketContext

abstract val socketContext: Job

Represents a socket lifetime, completes at socket closure

Inherited Functions

accept

abstract suspend fun accept(): S

accepts socket connection or suspends if none yet available.

dispose

open fun dispose(): Unit

Extension Properties

isClosed

val ASocket.isClosed: Boolean

Check if the socket is closed

Extension Functions

awaitClosed

suspend fun ASocket.awaitClosed(): Unit

Await until socket close