OnixS C++ FIX Engine  4.13.0
API Documentation
ISessionListener Class Referenceabstract

#include <OnixS/FIXEngine/FIX/ISessionListener.h>

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

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

Member Function Documentation

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.

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.
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.

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.

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.

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.

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.

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.

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.

virtual void onResendingFinished ( SequenceNumber  ,
SequenceNumber  ,
Session  
)
inlinevirtual

Is called when the resending process is completed.

Definition at line 216 of file ISessionListener.h.

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.

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.

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.

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.

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.


The documentation for this class was generated from the following file: