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

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

Public Member Functions

virtual ~ISessionListener ()
 
virtual void onInboundApplicationMsg (Message &message, Session *session)=0
 
virtual void onInboundSessionMsg (Message &, 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 void onError (ErrorReason::Enum, const std::string &, Session *)
 
virtual void onWarning (WarningReason::Enum, const std::string &, Session *)
 

Detailed Description

Definition at line 77 of file ISessionListener.h.

Constructor & Destructor Documentation

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

Definition at line 81 of file ISessionListener.h.

Member Function Documentation

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

Is called when an error condition is detected.

Definition at line 136 of file ISessionListener.h.

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

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

Note
: do no call base method if you have overridden it in derived class.
virtual void onInboundSessionMsg ( Message ,
Session  
)
inlinevirtual

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

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

Definition at line 90 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.

Definition at line 116 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 base method if you have overridden it in the derived class.
: Message's sequence number is the preliminary one.

Definition at line 98 of file ISessionListener.h.

virtual void onOutboundSessionMsg ( Message ,
Session  
)
inlinevirtual

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

Note
: do no call base method if you have overridden it in the derived class.
: Message's sequence number is the preliminary one.

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

virtual bool onResendRequest ( Message ,
Session  
)
inlinevirtual

Is called when 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 131 of file ISessionListener.h.

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

Is called when the session changes its state.

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


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