Class TPacketSequencer

Unit

Declaration

type TPacketSequencer = class(TObject)

Description

A class for generating packet sequences.

Hierarchy

Overview

Methods

Public constructor Create(Start: Cardinal);
Public function NextSequence: Cardinal;

Properties

Public property SequenceStart: Cardinal read FStart write SetSequenceStart;

Description

Methods

Public constructor Create(Start: Cardinal);

Constructs a new TPacketSequencer with the provided sequence start value.

Parameters
Start
The sequence start value
Public function NextSequence: Cardinal;

Returns the next sequence value, updating the sequence counter in the process.

Note: This is not a monotonic operation. The sequence counter increases from 0 to 9 before looping back around to 0.

Returns

The next sequence value

Properties

Public property SequenceStart: Cardinal read FStart write SetSequenceStart;

The sequence start, also known as the "starting counter ID".


Generated by PasDoc 0.16.0-snapshot.