Acceptable

interface Acceptable<out S : ASocket> : ASocket

Represents a socket source, for example server socket

Inheritors

Properties

Link copied to clipboard

Check if the socket is closed

Link copied to clipboard
abstract val socketContext: Job

Represents a socket lifetime, completes at socket closure

Functions

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

Suspends until a connection is available and returns it or throws if something goes wrong.

Link copied to clipboard
suspend fun ASocket.awaitClosed()

Await until socket close

Link copied to clipboard
expect abstract fun close()
Link copied to clipboard
open override fun dispose()