Open Model Railroad Network (OpenMRN)
Loading...
Searching...
No Matches
openlcb::ClockBaseSequenceNumberGenerator Class Reference

Implementation of sequence number generator that uses the real clock. More...

#include <IfTcpImpl.hxx>

Inheritance diagram for openlcb::ClockBaseSequenceNumberGenerator:
openlcb::SequenceNumberGenerator Destructable

Public Member Functions

long long get_sequence_number () override
 

Private Attributes

long long sequence_ = 0
 Sequence number of last sent message.
 

Detailed Description

Implementation of sequence number generator that uses the real clock.

Not thread-safe.

Definition at line 256 of file IfTcpImpl.hxx.

Member Function Documentation

◆ get_sequence_number()

long long openlcb::ClockBaseSequenceNumberGenerator::get_sequence_number ( )
inlineoverridevirtual
Returns
next sequence number based on clock time.

Implements openlcb::SequenceNumberGenerator.

Definition at line 260 of file IfTcpImpl.hxx.

Member Data Documentation

◆ sequence_

long long openlcb::ClockBaseSequenceNumberGenerator::sequence_ = 0
private

Sequence number of last sent message.

Definition at line 276 of file IfTcpImpl.hxx.


The documentation for this class was generated from the following file: