interface AsyncTcpListener
source · line 8public
public interface AsyncTcpListener : AsyncCloseable
- Supertype
AsyncCloseable - Inherited
suspend fun close(): Unit· AsyncCloseable
An owned TCP listening socket associated with one event loop.
function accept
source · line 16public
public suspend fun accept(): AsyncTcpStream
Suspends until a connection is accepted and returns a separately owned TCP stream.
property localAddress
source · line 12public
public val localAddress: SocketAddress
get: public read-only
The actual bound address, including a kernel-selected ephemeral port.