Acceptable

interface Acceptable<out S : ASocket> : ASocket

Represents a socket source, for example server socket

Inherited Properties

socketContext

abstract val socketContext: Job

Represents a socket lifetime, completes at socket closure

Functions

accept

abstract suspend fun accept(): S

accepts socket connection or suspends if none yet available.

Inherited Functions

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

Inheritors

ServerSocket

interface ServerSocket : 
    ASocket,
    ABoundSocket,
    Acceptable<Socket>

Represents a server bound socket ready for accepting connections