OnixS C++ CME MDP Conflated UDP Handler 1.1.2
API documentation
Loading...
Searching...
No Matches
Packet Class Reference

Public Member Functions

 Packet ()
 Packet (const void *data, PacketSize size)
 Packet (const void *data, PacketSize size, const NoVerify &)
 Packet (const Packet &other)
 ~Packet ()
 operator bool () const
const void * data () const
PacketSize size () const
SequenceNumber seqNumber () const
const TimestampsendingTime () const
BinaryMessages messages () const
void reset ()
void reset (const void *data, PacketSize size)
void reset (const void *data, PacketSize size, const NoVerify &)
Packetoperator= (const Packet &other)

Detailed Description

Definition at line 235 of file Packet.h.

Constructor & Destructor Documentation

◆ Packet() [1/4]

Packet ( )
inline

Initializes blank instance.

Definition at line 248 of file Packet.h.

◆ Packet() [2/4]

Packet ( const void * data,
PacketSize size )
inline

Initializes binary packet over the given buffer.

Exceptions
std::exceptionif given buffer doesn't satisfy base requirements on well-formed CME packet.

Definition at line 258 of file Packet.h.

◆ Packet() [3/4]

Packet ( const void * data,
PacketSize size,
const NoVerify &  )
inline

Initializes binary packet over the given buffer. Verification of the incoming content is omitted.

Definition at line 284 of file Packet.h.

◆ Packet() [4/4]

Packet ( const Packet & other)
inline

Initializes as a copy of the other instance.

Definition at line 297 of file Packet.h.

◆ ~Packet()

~Packet ( )
inline

Does actually nothing.

Definition at line 305 of file Packet.h.

Member Function Documentation

◆ data()

const void * data ( ) const
inline

Packet bytes.

Definition at line 317 of file Packet.h.

◆ messages()

BinaryMessages messages ( ) const
inline

Returns collection of messages stored by instance.

Definition at line 347 of file Packet.h.

◆ operator bool()

operator bool ( ) const
inline

Indicates whether the given instance points to a valid packet.

Definition at line 311 of file Packet.h.

◆ operator=()

Packet & operator= ( const Packet & other)
inline

Re-initializes the instance as the copy of the other one.

Definition at line 413 of file Packet.h.

◆ reset() [1/3]

void reset ( )
inline

Resets the instance to the null state.

Definition at line 359 of file Packet.h.

◆ reset() [2/3]

void reset ( const void * data,
PacketSize size )
inline

Re-initializes the instance to refer to the other content.

Definition at line 368 of file Packet.h.

◆ reset() [3/3]

void reset ( const void * data,
PacketSize size,
const NoVerify &  )
inline

Re-initializes the instance to refer to the other content.

Definition at line 397 of file Packet.h.

◆ sendingTime()

const Timestamp & sendingTime ( ) const
inline

Packet sending time.

Definition at line 339 of file Packet.h.

◆ seqNumber()

SequenceNumber seqNumber ( ) const
inline

Packet sequence number.

Definition at line 331 of file Packet.h.

◆ size()

PacketSize size ( ) const
inline

Packet size.

Definition at line 325 of file Packet.h.