Scoop API

scoop:scoop.platform:0.1.0

TcpListener

class TcpListener

source · line 166
public
public class TcpListener private constructor(private val owner: SocketOwner) : Closeable

An owned blocking TCP listener; accepted streams have independent ownership.

function close

source · line 220
public
public override fun close(): Unit

Closes the owned native descriptor; subsequent I/O through this owner is invalid.

function accept

source · line 206
public
public fun accept(): TcpStream

Blocks until a connection is accepted, returning an owned stream.