# TcpSocket

class TcpSocket(type: SocketType, host: String, port: Int, secured: Boolean, timeout: Long, certificates: TrustManager?) : RtmpSocket

Created by pedro on 5/4/22.

## Constructors

TcpSocket
Link copied to clipboard
constructor(type: SocketType, host: String, port: Int, secured: Boolean, timeout: Long, certificates: TrustManager?)

## Functions

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