# RtmpSocket

abstract class RtmpSocket

Created by pedro on 5/4/22. Socket implementation that accept:

- TCP

- TCP SSL/TLS

- UDP

- Tunneled HTTP

- Tunneled HTTPS

#### Inheritors

TcpSocket
TcpTunneledSocket

## Constructors

RtmpSocket
Link copied to clipboard
constructor()

## Functions

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