interface AsyncTcpStream
source · line 10public
public interface AsyncTcpStream : AsyncByteStream, AsyncCloseable
- Supertype
AsyncByteStream - Supertype
AsyncCloseable - Inherited
suspend fun close(): Unit· AsyncCloseable - Inherited
suspend fun flush(): Unit· AsyncByteSink - Inherited
suspend fun readInto(buffer: NativeByteBuffer, count: Long): Long· AsyncByteSource - Inherited
suspend fun writeFrom(buffer: NativeByteBuffer, count: Long): Long· AsyncByteSink
An owned connected TCP byte stream with independent input and output and explicit output half-close.
property peerAddress
source · line 18public
public val peerAddress: SocketAddress
get: public read-only
The remote endpoint of the established connection.
function shutdownOutput
source · line 22public
public suspend fun shutdownOutput(): Unit
Finishes the output direction while allowing the input direction to continue.
property localAddress
source · line 14public
public val localAddress: SocketAddress
get: public read-only
The local endpoint of the established connection.