Package-level declarations

Types

Link copied to clipboard

A coroutine-based SRT socket.

Functions

Link copied to clipboard
suspend fun CoroutineSrtSocket.bind(srtUrl: SrtUrl)
suspend fun CoroutineSrtSocket.bind(url: String)
suspend fun CoroutineSrtSocket.bind(address: InetAddress, port: Int)
suspend fun CoroutineSrtSocket.bind(address: String, port: Int)

Binds the socket to a local address.

Link copied to clipboard
suspend fun CoroutineSrtSocket.connect(srtUrl: SrtUrl)

Connects a socket to an URL.

suspend fun CoroutineSrtSocket.connect(address: InetAddress, port: Int)
suspend fun CoroutineSrtSocket.connect(address: String, port: Int)

Connects a socket to a specified address and port.

Link copied to clipboard
suspend fun CoroutineSrtSocket.recvFile(file: File, offset: Long = 0, size: Long, block: Int = 7280000): Long

Receives a file. File is create in file.

Link copied to clipboard
suspend fun CoroutineSrtSocket.rendezVous(srtUrl: SrtUrl)
suspend fun CoroutineSrtSocket.rendezVous(localAddress: InetAddress, remoteAddress: InetAddress, port: Int)
suspend fun CoroutineSrtSocket.rendezVous(localAddress: String, remoteAddress: String, port: Int)

Performs a rendezvous connection.

Link copied to clipboard
suspend fun CoroutineSrtSocket.send(msg: String): Int

Sends a message to a remote party.

Link copied to clipboard
suspend fun CoroutineSrtSocket.sendFile(file: File, offset: Long = 0, size: Long = file.length(), block: Int = 364000): Long

Sends a specified file.