PacketSnapshot

data class PacketSnapshot(val count: Long, val cumulativePayloadSize: Long)

A data class to track a snapshot of a given packet.

Constructors

Link copied to clipboard
constructor(count: Long, cumulativePayloadSize: Long)

Properties

Link copied to clipboard
val count: Long

the number of times this packet was sent or received.

Link copied to clipboard

the number of bytes that were sent or received in total from sending or receiving count number of this packet. The payload size does not include the 1-2 bytes for the opcode, nor the 1-2 bytes for the true payload size. It is strictly only the sum of the payloads themselves, and can be zero for constant packets with no payloads.