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_DECL(typeKind, typeName)
#define ONIXS_FIXENGINE_API
#define ONIXS_FIXENGINE_DEFAULT
Provides an access to FIX fields from a flat (tag=value) message.
virtual void onError(ErrorReason::Enum, const std::string &, Session *)
Is called when an error condition is detected.
virtual bool onResendRequest(FlatMessage &, Session *)
Is called when the message mode is FlatMessage and the sent application-level message is about to be ...
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 *)
Is called when the application-level message is sent to the counterparty.
virtual void onInboundSessionMsg(FlatMessage &, Session *)
Is called when the message mode is FlatMessage and the session-level message is received from the cou...
virtual void onMessageSending(SequenceNumber, char *, size_t, Session *)
Is called just before the FIX message is sent to the wire.
virtual void onStateChange(SessionState::Enum, SessionState::Enum, Session *)
Is called when the session changes its state.
virtual void onOutboundSessionMsg(Message &, Session *)
Is called when the session-level message is sent to the counterparty.
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 ~ISessionListener() ONIXS_FIXENGINE_DEFAULT
virtual void onInboundSessionMsg(Message &, Session *)
Is called when the message mode is Message and the session-level message is received from the counter...
virtual void onWarning(WarningReason::Enum, const std::string &, Session *)
Is called when a warning condition is detected.
virtual void onInboundApplicationMsg(Message &message, Session *session)=0
Is called when the message mode is Message and the application-level message is received from the cou...
virtual void onResendingFinished(SequenceNumber, SequenceNumber, Session *)
Is called when the resending process is completed.
virtual bool onResendRequest(Message &, Session *)
Is called when the message mode is Message and the sent application-level message is about to be re-s...
Encapsulates operations over a FIX Message.
Represents a timestamp of the received data.
@ 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 FIX Session - a bi-directional stream of ordered messages between two parties within a continuous...
The timestamps related functionality.
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.
@ MsgSeqNumTooLow
The incoming message has a sequence number less than expected and the PossDupFlag is not set,...
@ 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.