ISessionListener Class Reference

Session's Listener interface. More...

List of all members.

Public Types

enum  ErrorReason { FIRST_MESSAGE_NOT_A_LOGON, MSG_SEQ_NUM_TOO_LOW, CANNOT_RESTORE_CONNECTION }
 Error reason. More...
enum  WarningReason { GARBLED_MESSAGE_RECEIVED, LINK_ERROR }
 Warning reason. More...

Public Member Functions

virtual void onInboundApplicationMsg (const Message &msg, Session *sn)
 Is called when the applicatition-level message is received from the counterparty.
virtual void onInboundSessionMsg (const Message &msg, Session *sn)
 Is called when the session-level message is received from the counterparty.
virtual void onOutboundApplicationMsg (const Message &msg, Session *sn)
 Is called when the applicatition-level message is sent to the counterparty.
virtual void onOutboundSessionMsg (const Message &msg, Session *sn)
 Is called when the session-level message is is sent to the counterparty.
virtual void onStateChange (Session::State newState, Session::State prevState, Session *sn)
 Is called when the session changes its state.
virtual bool onResendRequest (const Message &msg, Session *sn)
 Is called when the sent application-level message is about to be re-sent to the counterparty in reply to the ResendRequest<2> message.
virtual void onError (ErrorReason reason, const std::string &description, Session *sn)
 Is called when an error condition is detected.
virtual void onWarning (WarningReason reason, const std::string &description, Session *sn)
 Is called when a warning condition is detected.


Detailed Description

Session's Listener interface.

Definition at line 16 of file ISessionListener.h.


Member Enumeration Documentation

enum ErrorReason

Error reason.

Enumerator:
FIRST_MESSAGE_NOT_A_LOGON 
MSG_SEQ_NUM_TOO_LOW 
CANNOT_RESTORE_CONNECTION 

Definition at line 39 of file ISessionListener.h.

enum WarningReason

Warning reason.

Enumerator:
GARBLED_MESSAGE_RECEIVED 
LINK_ERROR 

Definition at line 45 of file ISessionListener.h.


Member Function Documentation

virtual void onInboundApplicationMsg ( const Message msg,
Session sn 
) [inline, virtual]

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

Definition at line 19 of file ISessionListener.h.

virtual void onInboundSessionMsg ( const Message msg,
Session sn 
) [inline, virtual]

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

Definition at line 22 of file ISessionListener.h.

virtual void onOutboundApplicationMsg ( const Message msg,
Session sn 
) [inline, virtual]

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

Definition at line 25 of file ISessionListener.h.

virtual void onOutboundSessionMsg ( const Message msg,
Session sn 
) [inline, virtual]

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

Definition at line 28 of file ISessionListener.h.

virtual void onStateChange ( Session::State  newState,
Session::State  prevState,
Session sn 
) [inline, virtual]

Is called when the session changes its state.

Definition at line 31 of file ISessionListener.h.

virtual bool onResendRequest ( const Message msg,
Session sn 
) [inline, virtual]

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 36 of file ISessionListener.h.

virtual void onError ( ErrorReason  reason,
const std::string &  description,
Session sn 
) [inline, virtual]

Is called when an error condition is detected.

Definition at line 42 of file ISessionListener.h.

virtual void onWarning ( WarningReason  reason,
const std::string &  description,
Session sn 
) [inline, virtual]

Is called when a warning condition is detected.

Definition at line 48 of file ISessionListener.h.


The documentation for this class was generated from the following file:
Generated on Sun Jun 8 14:08:38 2008 for FIXForge C++ FIX Engine by  doxygen 1.5.2