NetworkStream

open class NetworkStream

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
suspend fun close()

Gracefully closes the given raw byte stream.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
suspend fun readExact(len: Long): ByteArray

Reads exactly the given number of bytes from the given raw byte stream.

Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
suspend fun writeAll(buf: ByteArray)

Writes the whole buffer to the given raw byte stream.