OnixS C++ CME MDP Conflated TCP Handler 1.3.6
API Documentation
Loading...
Searching...
No Matches
SessionListener Class Referenceabstract

Public Member Functions

virtual void onNegotiationReject (const Messaging::NegotiationReject201 &, Session *)
virtual void onNegotiationResponse (const Messaging::NegotiationResponse202 &, Session *)
virtual void onTerminate (const Messaging::Terminate203 &, Session *)
virtual void onRequestAck (const Messaging::RequestAck206 &, Session *)
virtual void onRequestReject (const Messaging::RequestReject207 &, Session *)
virtual void onOutboundApplicationMsg (const Messaging::SbeMessage &, Session *)
virtual void onOutboundSessionMsg (const Messaging::SbeMessage &, Session *)
virtual void onReceivedBytes (const char *, size_t, Session *)
virtual void onMessageSending (char *, size_t, Session *)
virtual void onStateChange (SessionStateId::Enum, SessionStateId::Enum, Session *)
virtual void onError (SessionErrorReason::Enum, const std::string &, Session *)
virtual void onWarning (SessionWarningReason::Enum, const std::string &, Session *)

Protected Member Functions

virtual ~SessionListener ()=0

Detailed Description

Definition at line 136 of file SessionListener.h.

Constructor & Destructor Documentation

◆ ~SessionListener()

virtual ~SessionListener ( )
protectedpure virtual

Member Function Documentation

◆ onError()

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

Called when an error condition is detected.

Definition at line 161 of file SessionListener.h.

◆ onMessageSending()

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

Called when the SBE message is about to be sent to the wire.

Definition at line 155 of file SessionListener.h.

◆ onNegotiationReject()

virtual void onNegotiationReject ( const Messaging::NegotiationReject201 & ,
Session *  )
inlinevirtual

Definition at line 139 of file SessionListener.h.

◆ onNegotiationResponse()

virtual void onNegotiationResponse ( const Messaging::NegotiationResponse202 & ,
Session *  )
inlinevirtual

Definition at line 140 of file SessionListener.h.

◆ onOutboundApplicationMsg()

virtual void onOutboundApplicationMsg ( const Messaging::SbeMessage & ,
Session *  )
inlinevirtual

Called when the application-level message is sent to the counterparty.

Definition at line 146 of file SessionListener.h.

◆ onOutboundSessionMsg()

virtual void onOutboundSessionMsg ( const Messaging::SbeMessage & ,
Session *  )
inlinevirtual

Called when the session-level message is sent to the counterparty.

Definition at line 149 of file SessionListener.h.

◆ onReceivedBytes()

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

Called as soon as bytes are received from the wire.

Definition at line 152 of file SessionListener.h.

◆ onRequestAck()

virtual void onRequestAck ( const Messaging::RequestAck206 & ,
Session *  )
inlinevirtual

Definition at line 142 of file SessionListener.h.

◆ onRequestReject()

virtual void onRequestReject ( const Messaging::RequestReject207 & ,
Session *  )
inlinevirtual

Definition at line 143 of file SessionListener.h.

◆ onStateChange()

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

Called when the session changes its state.

Definition at line 158 of file SessionListener.h.

◆ onTerminate()

virtual void onTerminate ( const Messaging::Terminate203 & ,
Session *  )
inlinevirtual

Definition at line 141 of file SessionListener.h.

◆ onWarning()

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

Called when a warning condition is detected.

Definition at line 164 of file SessionListener.h.