Scoop API

scoop:scoop.platform:0.1.0

TcpStream

class TcpStream

source · line 10
public
public class TcpStream internal constructor(
    private val owner: SocketOwner
) : ByteSource, ByteSink, Closeable

An owned blocking TCP connection. Input and output can be half-closed separately; close releases the entire connection.

function close

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

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

function flush

source · line 152
public
public override fun flush(): Unit
  • Overrides flush · ByteSink

Checks the unbuffered connection state; it does not wait for peer acknowledgement.

function shutdownInput

source · line 132
public
public fun shutdownInput(): Unit

Shuts down the connection's input direction.

function shutdownOutput

source · line 138
public
public fun shutdownOutput(): Unit

Shuts down output while preserving the input direction.