125 const std::string TimeStr = timestamp_.toString();
126 std::string str =
"ReceivedDataTimestamp [source = ";
131 str +=
"Software, time = " + TimeStr;
133 str +=
"Hardware, time = " + TimeStr;
#define ONIXS_FIXENGINE_API
Receives synchronous session callbacks; see Callback Safety for restrictions and data lifetime.
virtual void onInboundApplicationMsg(FlatMessage &, Session *)
virtual void onError(ErrorReason::Enum, const std::string &, Session *)
virtual ~ISessionListener()=default
virtual bool onResendRequest(FlatMessage &, Session *)
virtual void onReceivedBytes(const char *, size_t, const ReceivedDataTimestamp &, Session *)
Is called as soon as bytes are received from the wire.
virtual void onOutboundApplicationMsg(Message &, Session *)
virtual void onInboundSessionMsg(FlatMessage &, Session *)
virtual void onMessageSending(SequenceNumber, char *, size_t, Session *)
virtual void onStateChange(SessionState::Enum, SessionState::Enum, Session *)
Is called when the session changes its state.
virtual void onOutboundSessionMsg(Message &, Session *)
virtual void onResendingStarted(SequenceNumber, SequenceNumber, Session *)
Is called when the ResendRequest<2> message is received and the session is about to start to resend m...
virtual void onInboundSessionMsg(Message &, Session *)
virtual void onWarning(WarningReason::Enum, const std::string &, Session *)
virtual void onInboundApplicationMsg(Message &message, Session *session)=0
virtual void onResendingFinished(SequenceNumber, SequenceNumber, Session *)
Is called when the resending process is completed.
virtual bool onResendRequest(Message &, Session *)
@ Software
Timestamp provided by the OS kernel / user-level network stack.
@ Hardware
Timestamp provided by the network card.
@ None
No timestamp available.
std::string toString() const
Returns a human-readable presentation.
ReceivedDataTimestamp(const Timestamp ×tamp, Source source)
const Timestamp & timestamp() const
Returns the received data timestamp.
Source source() const
Returns the source of the received data timestamp.
The timestamps related functionality.
ONIXS_FIXENGINE_API_DECL(class, IEngineListener)
unsigned int SequenceNumber
Alias for the sequence number.
@ SetSocketOptionError
Socket options cannot be set.
@ ExceptionInEventHandler
An exception was thrown in the client event handler implementation.
@ CannotRestoreConnection
The FIX Connection cannot be restored.
@ GeneralError
The general system-related error.
@ FirstMessageNotALogon
The first message received is not a Logon message.
@ InvalidIncomingMessage
The FIX message received is not valid.
@ ExceptionDuringProcessingOfIncomingMessage
An exception was thrown during processing of the incoming message.
@ SeqGapIsDetected
The sequence gap in the incoming messages is detected.
@ ResendTimeout
The ResendTimeout is elapsed.
@ CannotConnect
Cannot re-establish the FIX Connection after the reconnect attempt.
@ GarbledMessageReceived
A garbled message is received.
@ LinkError
The telecommunication link error is detected.
@ GeneralWarning
The general system-related warning.