|
ITCH 5.0 Market Data Handler 1.0.0
NASDAQ ITCH 5.0 Market Data Feed Handler
|
MoldUDP64 sequencer implementation traits and operations. More...
MoldUDP64 sequencer implementation traits and operations.
Provides the implementation-specific functionality required by the generic Sequencer template. This includes type definitions, memory management, and message cloning operations specific to MoldUDP64 protocol.
The SequencerImpl handles:
#include <nasdaq/moldudp64/Sequencer.h>
Classes | |
| struct | Traits |
| Type traits for the sequencer. More... | |
Public Member Functions | |
| SequencerImpl (const SequencerParams &p) | |
| Construct the sequencer implementation. | |
| const MessageBlock * | clone (const MessageBlock *msg, MemPool &pool) |
| Clone a message into a memory pool. | |
|
inline |
Construct the sequencer implementation.
Initializes the sequencer with the provided parameters. Currently no initialization is needed beyond construction.
| p | Sequencer parameters (configuration options) |
|
inline |
Clone a message into a memory pool.
Creates a deep copy of a MoldUDP64 message in the provided memory pool. This is used to store messages that arrive out of order, enabling gap recovery and reassembly.
The method allocates space for the entire message (including header) and performs a byte-for-byte copy.
| msg | Pointer to the message to clone |
| pool | Memory pool to allocate from |
References clone(), and b2bits::nasdaq::moldudp64::MessageBlock::get_message_length().
Referenced by clone().