OnixS C++ FIX Engine  4.12.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, 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 88 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 158 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 102 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 106 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 110 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 134 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 118 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 126 of file ISessionListener.h.

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

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

Definition at line 129 of file ISessionListener.h.

virtual void onResendingFinished ( SequenceNumber  ,
SequenceNumber  ,
Session  
)
inlinevirtual

Is called when the resending process is completed.

Definition at line 155 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 152 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 143 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 149 of file ISessionListener.h.

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

Is called when the session changes its state.

Definition at line 137 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 161 of file ISessionListener.h.


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