# SrtSocket

class SrtSocket(type: SocketType, host: String, port: Int, timeout: Long)

Created by pedro on 22/8/23.

## Constructors

SrtSocket
Link copied to clipboard
constructor(type: SocketType, host: String, port: Int, timeout: Long)

## Functions

close
Link copied to clipboard
suspend fun close()
connect
Link copied to clipboard
suspend fun connect()
isConnected
Link copied to clipboard
fun isConnected(): Boolean
isReachable
Link copied to clipboard
fun isReachable(): Boolean
readBuffer
Link copied to clipboard
suspend fun readBuffer(): ByteArray
write
Link copied to clipboard
suspend fun write(srtPacket: SrtPacket)