TcpStreamSocketImp

class TcpStreamSocketImp(host: String, port: Int, secured: Boolean = false, certificate: TrustManager? = null) : TcpStreamSocket

Created by pedro on 22/9/24.

Constructors

Link copied to clipboard
constructor(host: String, port: Int, secured: Boolean = false, certificate: TrustManager? = null)

Functions

Link copied to clipboard
open suspend override fun close()
Link copied to clipboard
open suspend override fun connect()
Link copied to clipboard
suspend fun flush()
Link copied to clipboard
open override fun isConnected(): Boolean
Link copied to clipboard
open override fun isReachable(): Boolean
Link copied to clipboard
suspend fun read(): Int
Link copied to clipboard
suspend fun readLine(): String?
Link copied to clipboard
suspend fun readUInt16(): Int
Link copied to clipboard
suspend fun readUInt24(): Int
Link copied to clipboard
suspend fun readUInt32(): Int
Link copied to clipboard
Link copied to clipboard
suspend fun readUntil(b: ByteArray)
Link copied to clipboard
suspend fun write(b: ByteArray): Unit?
suspend fun write(b: Int): Unit?
suspend fun write(string: String): Unit?
suspend fun write(b: ByteArray, offset: Int, size: Int): Unit?
Link copied to clipboard
suspend fun writeUInt16(b: Int)
Link copied to clipboard
suspend fun writeUInt24(b: Int)
Link copied to clipboard
suspend fun writeUInt32(b: Int)
Link copied to clipboard