|
llfix
Low-latency FIX engine
|
Represents a single FIX protocol session. More...
#include <fix_session.h>
Inherits ManagedInstanceSession.
Public Member Functions | |
| std::string | get_name () const override |
| Returns the logical name of the FIX session. More... | |
| SessionState | get_state () |
| Retrieves the current state of the FIX session. More... | |
| SequenceStore * | get_sequence_store () |
| Provides access to the session's sequence store. More... | |
| template<typename T > | |
| bool | add_attribute (const std::string &attribute, const T &value) |
| Adds or updates a session-scoped attribute. More... | |
| bool | get_attribute (const std::string &attribute, std::string &value) const |
| Retrieves a session attribute value. More... | |
Represents a single FIX protocol session.
FixSession encapsulates the full lifecycle, state management, sequencing, throttling, validation, and message handling logic for a FIX connection.
|
inline |
Adds or updates a session-scoped attribute.
Attributes are stored as key/value string pairs and can be used to associate arbitrary metadata with a session instance.
Supported value types:
| T | Attribute value type. |
| attribute | Attribute name (key). |
| value | Attribute value. |
|
inline |
Retrieves a session attribute value.
Looks up an attribute by name and returns its value if present.
| attribute | Attribute name (key). |
| value | Output parameter receiving the attribute value. |
|
inlineoverride |
Returns the logical name of the FIX session.
The session name uniquely identifies this FixSession instance and is typically configured during initialisation.
|
inline |
Provides access to the session's sequence store.
The sequence store maintains incoming and outgoing FIX message sequence numbers and persists them according to configuration.
|
inline |
Retrieves the current state of the FIX session.
The returned value represents the lifecycle and connection state of the session. Possible states are: