wait

fun wait(timeout: Long, expectedReadReadySocketSize: Int = 2, expectedWriteReadySocketSize: Int = 2): Pair<List<SrtSocket>, List<SrtSocket>>

Blocks the call until any readiness state occurs in the epoll container.

See Also: srt_epoll_wait

Parameters

readFds

List of SRT sockets that are read-ready

writeFds

List of SRT sockets that are write-ready

timeout

Timeout specified in milliseconds. Set to -1, if you want to block indefinitely

Throws

if Epoll is not valid or timeout is triggered