SrtPerformanceData

data class SrtPerformanceData(val bytesSent: Long, val bytesReceived: Long, val sendBufferBytes: Int, val receiveBufferBytes: Int, val roundTripTimeMs: Double, val sendRateMbps: Double, val receiveRateMbps: Double, val msTimeStamp: Long = 0, val pktSentTotal: Long = 0, val pktRecvTotal: Long = 0, val pktSndLossTotal: Int = 0, val pktRcvLossTotal: Int = 0, val pktRetransTotal: Int = 0, val pktSentACKTotal: Int = 0, val pktRecvACKTotal: Int = 0, val pktSentNAKTotal: Int = 0, val pktRecvNAKTotal: Int = 0, val usSndDurationTotal: Long = 0, val pktSndDropTotal: Int = 0, val pktRcvDropTotal: Int = 0, val pktRcvUndecryptTotal: Int = 0, val byteRcvLossTotal: Long = 0, val byteRetransTotal: Long = 0, val byteSndDropTotal: Long = 0, val byteRcvDropTotal: Long = 0, val byteRcvUndecryptTotal: Long = 0, val pktSent: Long = 0, val pktRecv: Long = 0, val pktSndLoss: Int = 0, val pktRcvLoss: Int = 0, val pktRetrans: Int = 0, val pktRcvRetrans: Int = 0, val pktSentACK: Int = 0, val pktRecvACK: Int = 0, val pktSentNAK: Int = 0, val pktRecvNAK: Int = 0, val usSndDuration: Long = 0, val pktReorderDistance: Int = 0, val pktRcvAvgBelatedTime: Double = 0.0, val pktRcvBelated: Long = 0, val pktSndDrop: Int = 0, val pktRcvDrop: Int = 0, val pktRcvUndecrypt: Int = 0, val byteSent: Long = 0, val byteRecv: Long = 0, val byteRcvLoss: Long = 0, val byteRetrans: Long = 0, val byteSndDrop: Long = 0, val byteRcvDrop: Long = 0, val byteRcvUndecrypt: Long = 0, val usPktSndPeriod: Double = 0.0, val pktFlowWindow: Int = 0, val pktCongestionWindow: Int = 0, val pktFlightSize: Int = 0, val mbpsBandwidth: Double = 0.0, val byteAvailSndBuf: Int = 0, val byteAvailRcvBuf: Int = 0, val mbpsMaxBW: Double = 0.0, val byteMSS: Int = 0, val pktSndBuf: Int = 0, val msSndBuf: Int = 0, val msSndTsbPdDelay: Int = 0, val pktRcvBuf: Int = 0, val msRcvBuf: Int = 0, val msRcvTsbPdDelay: Int = 0, val pktSndFilterExtraTotal: Int = 0, val pktRcvFilterExtraTotal: Int = 0, val pktRcvFilterSupplyTotal: Int = 0, val pktRcvFilterLossTotal: Int = 0, val pktSndFilterExtra: Int = 0, val pktRcvFilterExtra: Int = 0, val pktRcvFilterSupply: Int = 0, val pktRcvFilterLoss: Int = 0, val pktReorderTolerance: Int = 0)

Immutable native statistics snapshot. Byte totals include protocol overhead; outgoing totals also include retransmissions. Fields ending in Total and the two byte totals are cumulative. Interval counters cover the time since the previous reset. Buffer sizes and RTT describe the sampled state.

Constructors

Link copied to clipboard
constructor(bytesSent: Long, bytesReceived: Long, sendBufferBytes: Int, receiveBufferBytes: Int, roundTripTimeMs: Double, sendRateMbps: Double, receiveRateMbps: Double, msTimeStamp: Long = 0, pktSentTotal: Long = 0, pktRecvTotal: Long = 0, pktSndLossTotal: Int = 0, pktRcvLossTotal: Int = 0, pktRetransTotal: Int = 0, pktSentACKTotal: Int = 0, pktRecvACKTotal: Int = 0, pktSentNAKTotal: Int = 0, pktRecvNAKTotal: Int = 0, usSndDurationTotal: Long = 0, pktSndDropTotal: Int = 0, pktRcvDropTotal: Int = 0, pktRcvUndecryptTotal: Int = 0, byteRcvLossTotal: Long = 0, byteRetransTotal: Long = 0, byteSndDropTotal: Long = 0, byteRcvDropTotal: Long = 0, byteRcvUndecryptTotal: Long = 0, pktSent: Long = 0, pktRecv: Long = 0, pktSndLoss: Int = 0, pktRcvLoss: Int = 0, pktRetrans: Int = 0, pktRcvRetrans: Int = 0, pktSentACK: Int = 0, pktRecvACK: Int = 0, pktSentNAK: Int = 0, pktRecvNAK: Int = 0, usSndDuration: Long = 0, pktReorderDistance: Int = 0, pktRcvAvgBelatedTime: Double = 0.0, pktRcvBelated: Long = 0, pktSndDrop: Int = 0, pktRcvDrop: Int = 0, pktRcvUndecrypt: Int = 0, byteSent: Long = 0, byteRecv: Long = 0, byteRcvLoss: Long = 0, byteRetrans: Long = 0, byteSndDrop: Long = 0, byteRcvDrop: Long = 0, byteRcvUndecrypt: Long = 0, usPktSndPeriod: Double = 0.0, pktFlowWindow: Int = 0, pktCongestionWindow: Int = 0, pktFlightSize: Int = 0, mbpsBandwidth: Double = 0.0, byteAvailSndBuf: Int = 0, byteAvailRcvBuf: Int = 0, mbpsMaxBW: Double = 0.0, byteMSS: Int = 0, pktSndBuf: Int = 0, msSndBuf: Int = 0, msSndTsbPdDelay: Int = 0, pktRcvBuf: Int = 0, msRcvBuf: Int = 0, msRcvTsbPdDelay: Int = 0, pktSndFilterExtraTotal: Int = 0, pktRcvFilterExtraTotal: Int = 0, pktRcvFilterSupplyTotal: Int = 0, pktRcvFilterLossTotal: Int = 0, pktSndFilterExtra: Int = 0, pktRcvFilterExtra: Int = 0, pktRcvFilterSupply: Int = 0, pktRcvFilterLoss: Int = 0, pktReorderTolerance: Int = 0)
constructor(bytesSent: Long, bytesReceived: Long, sendBufferBytes: Int, receiveBufferBytes: Int, roundTripTimeMs: Double, sendRateMbps: Double, receiveRateMbps: Double)

Properties

Link copied to clipboard

The available space in the receive buffer, in bytes.

Link copied to clipboard

The available space in the send buffer, in bytes.

Link copied to clipboard

The maximum transmission unit, in bytes.

Link copied to clipboard

The number of bytes dropped because they were too late to play, estimated from the average packet size.

Link copied to clipboard

The number of bytes dropped because they were too late to play, estimated from the average packet size.

Link copied to clipboard

The number of lost bytes reported by the receiver.

Link copied to clipboard

The total number of lost bytes.

Link copied to clipboard

The number of bytes that could not be decrypted.

Link copied to clipboard

The number of bytes that could not be decrypted.

Link copied to clipboard

The number of received bytes.

Link copied to clipboard

The number of retransmitted bytes.

Link copied to clipboard

The total number of retransmitted bytes.

Link copied to clipboard

The number of sent data bytes, including retransmissions.

Link copied to clipboard

The number of bytes dropped because they were too late to send.

Link copied to clipboard

The number of bytes dropped because they were too late to send.

Link copied to clipboard

Total incoming bytes reported by libsrt.

Link copied to clipboard

Total outgoing bytes reported by libsrt.

Link copied to clipboard

The estimated available bandwidth, in megabits per second.

Link copied to clipboard

The transmission bandwidth limit, in megabits per second.

Link copied to clipboard

The time span of data awaiting delivery in the receive buffer, in milliseconds.

Link copied to clipboard

The receiver’s timestamp-based packet delivery delay, in milliseconds.

Link copied to clipboard

The time span of unacknowledged data in the send buffer, in milliseconds.

Link copied to clipboard

The sender’s timestamp-based packet delivery delay, in milliseconds.

Link copied to clipboard

The elapsed time since the socket started, in milliseconds.

Link copied to clipboard

The congestion window size, in number of packets.

Link copied to clipboard

The number of packets in flight.

Link copied to clipboard

The flow window size, in number of packets.

Link copied to clipboard

The average delay of late packets whose sequence numbers precede the acknowledged position.

Link copied to clipboard

The number of received packets ignored because they arrived too late.

Link copied to clipboard

The number of packets awaiting delivery in the receive buffer.

Link copied to clipboard

The number of packets dropped because they were too late to play.

Link copied to clipboard

The number of packets dropped because they were too late to play.

Link copied to clipboard

The number of filter control packets received and consumed by the packet filter.

Link copied to clipboard

The number of filter control packets received and consumed by the packet filter.

Link copied to clipboard

The number of lost packets that the packet filter could not recover.

Link copied to clipboard

The number of lost packets that the packet filter could not recover.

Link copied to clipboard

The number of packets recovered by the packet filter, such as through forward error correction.

Link copied to clipboard

The number of packets recovered by the packet filter, such as through forward error correction.

Link copied to clipboard

The number of lost packets (receiver side).

Link copied to clipboard

The total number of lost packets (receiver side).

Link copied to clipboard

The number of retransmitted packets received.

Link copied to clipboard

The number of packets that could not be decrypted.

Link copied to clipboard

The number of packets that could not be decrypted.

Link copied to clipboard

The number of received packets.

Link copied to clipboard

The number of received ACK packets.

Link copied to clipboard

The total number of received ACK packets.

Link copied to clipboard

The number of received NAK packets.

Link copied to clipboard

The total number of received NAK packets.

Link copied to clipboard

The total number of received packets.

Link copied to clipboard

The sequence-number distance of reordered received packets.

Link copied to clipboard

The packet reordering tolerance, measured in packets.

Link copied to clipboard

The number of retransmitted packets.

Link copied to clipboard

The total number of retransmitted packets.

Link copied to clipboard

The number of sent data packets, including retransmissions.

Link copied to clipboard

The number of sent ACK packets.

Link copied to clipboard

The total number of sent ACK packets.

Link copied to clipboard

The number of sent NAK packets.

Link copied to clipboard

The total number of sent NAK packets.

Link copied to clipboard

The total number of sent data packets, including retransmissions.

Link copied to clipboard

The number of unacknowledged packets in the send buffer.

Link copied to clipboard

The number of packets dropped because they were too late to send.

Link copied to clipboard

The number of packets dropped because they were too late to send.

Link copied to clipboard

The number of control packets supplied by packet filter.

Link copied to clipboard

The number of control packets supplied by packet filter.

Link copied to clipboard

The number of lost packets (sender side).

Link copied to clipboard

The total number of lost packets (sender side).

Link copied to clipboard

Bytes queued in the receive buffer.

Link copied to clipboard

Measured receiving rate in megabits per second.

Link copied to clipboard

Estimated round-trip time in milliseconds.

Link copied to clipboard

Bytes waiting for acknowledgement in the send buffer.

Link copied to clipboard

Measured sending rate in megabits per second.

Link copied to clipboard

The packet sending period, in microseconds.

Link copied to clipboard

The time spent sending data during the measurement interval, excluding idle time, in microseconds.

Link copied to clipboard

The cumulative time spent sending data, excluding idle time, in microseconds.