OnixS C++ FIX Engine 4.13.0
API Documentation
Loading...
Searching...
No Matches
ISessionListener Class Referenceabstract

Public Member Functions

virtual ~ISessionListener () ONIXS_FIXENGINE_DEFAULT
virtual void onInboundApplicationMsg (Message &message, Session *session)=0
virtual void onInboundApplicationMsg (FlatMessage &, Session *)
virtual void onInboundSessionMsg (Message &, Session *)
virtual void onInboundSessionMsg (FlatMessage &, Session *)
virtual void onOutboundApplicationMsg (Message &, Session *)
virtual void onOutboundSessionMsg (Message &, Session *)
virtual void onReceivedBytes (const char *, size_t, const ReceivedDataTimestamp &, Session *)
virtual void onMessageSending (SequenceNumber, char *, size_t, Session *)
virtual void onStateChange (SessionState::Enum, SessionState::Enum, Session *)
virtual bool onResendRequest (Message &, Session *)
virtual bool onResendRequest (FlatMessage &, Session *)
virtual void onResendingStarted (SequenceNumber, SequenceNumber, Session *)
virtual void onResendingFinished (SequenceNumber, SequenceNumber, Session *)
virtual void onError (ErrorReason::Enum, const std::string &, Session *)
virtual void onWarning (WarningReason::Enum, const std::string &, Session *)

Detailed Description

Definition at line 149 of file ISessionListener.h.

Constructor & Destructor Documentation

◆ ~ISessionListener()

virtual ~ISessionListener ( )
virtual
Note
the FIX Engine/Session does NOT manage the lifetime of this listener.

Member Function Documentation

◆ onError()

virtual void onError ( ErrorReason::Enum ,
const std::string & ,
Session *  )
inlinevirtual

Is called when an error condition is detected.

Definition at line 219 of file ISessionListener.h.

◆ onInboundApplicationMsg() [1/2]

virtual void onInboundApplicationMsg ( FlatMessage & ,
Session *  )
inlinevirtual

Is called when the message mode is FlatMessage and the application-level message is received from the counterparty.

Note
: do no call the base method if you have overridden it in the derived class.

Definition at line 163 of file ISessionListener.h.

◆ onInboundApplicationMsg() [2/2]

virtual void onInboundApplicationMsg ( Message & message,
Session * session )
pure virtual

Is called when the message mode is Message and the application-level message is received from the counterparty.

Note
: do no call the base method if you have overridden it in the derived class.

◆ onInboundSessionMsg() [1/2]

virtual void onInboundSessionMsg ( FlatMessage & ,
Session *  )
inlinevirtual

Is called when the message mode is FlatMessage and the session-level message is received from the counterparty.

Note
: do no call the base method if you have overridden it in the derived class.

Definition at line 171 of file ISessionListener.h.

◆ onInboundSessionMsg() [2/2]

virtual void onInboundSessionMsg ( Message & ,
Session *  )
inlinevirtual

Is called when the message mode is Message and the session-level message is received from the counterparty.

Note
: do no call the base method if you have overridden it in the derived class.

Definition at line 167 of file ISessionListener.h.

◆ onMessageSending()

virtual void onMessageSending ( SequenceNumber ,
char * ,
size_t ,
Session *  )
inlinevirtual

Is called just before the FIX message is sent to the wire.

Warning
: It is called under the session's lock.

Definition at line 195 of file ISessionListener.h.

◆ onOutboundApplicationMsg()

virtual void onOutboundApplicationMsg ( Message & ,
Session *  )
inlinevirtual

Is called when the application-level message is sent to the counterparty.

Note
: do no call the base method if you have overridden it in the derived class.
: The message's sequence number is the preliminary one.
Warning
: It is called under the session's lock.

Definition at line 179 of file ISessionListener.h.

◆ onOutboundSessionMsg()

virtual void onOutboundSessionMsg ( Message & ,
Session *  )
inlinevirtual

Is called when the session-level message is sent to the counterparty.

Note
: do no call the base method if you have overridden it in the derived class.
: The message's sequence number is the preliminary one.
Warning
: It is called under the session's lock.

Definition at line 187 of file ISessionListener.h.

◆ onReceivedBytes()

virtual void onReceivedBytes ( const char * ,
size_t ,
const ReceivedDataTimestamp & ,
Session *  )
inlinevirtual

Is called as soon as bytes are received from the wire.

Definition at line 190 of file ISessionListener.h.

◆ onResendingFinished()

virtual void onResendingFinished ( SequenceNumber ,
SequenceNumber ,
Session *  )
inlinevirtual

Is called when the resending process is completed.

Definition at line 216 of file ISessionListener.h.

◆ onResendingStarted()

virtual void onResendingStarted ( SequenceNumber ,
SequenceNumber ,
Session *  )
inlinevirtual

Is called when the ResendRequest<2> message is received and the session is about to start to resend messages.

Definition at line 213 of file ISessionListener.h.

◆ onResendRequest() [1/2]

virtual bool onResendRequest ( FlatMessage & ,
Session *  )
inlinevirtual

Is called when the message mode is FlatMessage and the sent application-level message is about to be re-sent to the counterparty in reply to the ResendRequest<2> message.

Returns
true if the message should be re-sent, otherwise - false.

Definition at line 210 of file ISessionListener.h.

◆ onResendRequest() [2/2]

virtual bool onResendRequest ( Message & ,
Session *  )
inlinevirtual

Is called when the message mode is Message and the sent application-level message is about to be re-sent to the counterparty in reply to the ResendRequest<2> message.

Returns
true if the message should be re-sent, otherwise - false.

Definition at line 204 of file ISessionListener.h.

◆ onStateChange()

virtual void onStateChange ( SessionState::Enum ,
SessionState::Enum ,
Session *  )
inlinevirtual

Is called when the session changes its state.

Definition at line 198 of file ISessionListener.h.

◆ onWarning()

virtual void onWarning ( WarningReason::Enum ,
const std::string & ,
Session *  )
inlinevirtual

Is called when a warning condition is detected.

Definition at line 222 of file ISessionListener.h.