xrootdlib.streams.XrdXrootdMon.utility module

class PSeq(pseq: int)

Bases: object

Sortable Packet Sequence, an Integer from a wrapping (0, 255) range

Parameters:pseq – the pseq of a packet

This represents the XRootD Packet Sequence for the purpose of comparisons. It ensures that comparisons respects wrapping from 255 to 0. In effect, a high-valued PSeq compares less than a low-valued PSeq.

Warning:This class does not implement a full Integer interface.
exception PacketBufferExhausted

Bases: Exception

The buffer of packet data is exhausted

packet_from_buffer(packet_source: IO[bytes])

Read a packet from a bytes buffer