MsgCtrl

data class MsgCtrl(val flags: Int = 0, val ttl: Int = -1, val inOrder: Boolean = false, val boundary: Boundary = io.github.thibaultbee.srtdroid.core.enums.Boundary.SUBSEQUENT, val srcTime: Long = 0, val pktSeq: Int = -1, val no: Int = -1)

This class represents extra parameters for SrtSocket.send and SrtSocket.recv

See Also: srt_msgctrl

Constructors

Link copied to clipboard
constructor(flags: Int = 0, ttl: Int = -1, inOrder: Boolean = false, boundary: Boundary = io.github.thibaultbee.srtdroid.core.enums.Boundary.SUBSEQUENT, srcTime: Long = 0, pktSeq: Int = -1, no: Int = -1)

Properties

Link copied to clipboard

Reserved for future use. Should be Boundary.SUBSEQUENT.

Link copied to clipboard
val flags: Int = 0

Reserved for future use. Should be 0.

Link copied to clipboard
val inOrder: Boolean = false

Required to be received in the order of sending.

Link copied to clipboard
val no: Int

Message number that can be sent by both sender and receiver.

Link copied to clipboard
val pktSeq: Int

Receiver only: reports the sequence number for the packet carrying out the message being returned.

Link copied to clipboard
val srcTime: Long = 0

Receiver: specifies the time when the packet was intended to be delivered to the receiving application (in microseconds since SRT clock epoch). Sender: specifies the application-provided timestamp to be associated with the packet.

Link copied to clipboard
val ttl: Int

The time (in ms) to wait for a successful delivery. -1 means no time limitation.