OnixS C++ FIX Engine  4.12.0
API Documentation
IEngineListener Class Referenceabstract

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

Public Member Functions

virtual ~IEngineListener () ONIXS_FIXENGINE_DEFAULT
 
virtual void onUnknownIncomingConnection (const FlatMessage &incomingLogon, const int listenPort, const int counterpartyPort, const std::string &counterpartyIpAddress, std::string *rejectReason)=0
 
virtual void onIncomingConnection (ONIXS_FIXENGINE_UNUSED const FlatMessage &incomingLogon, ONIXS_FIXENGINE_UNUSED const int listenPort, ONIXS_FIXENGINE_UNUSED const int counterpartyPort, ONIXS_FIXENGINE_UNUSED const std::string &counterpartyIpAddress, ONIXS_FIXENGINE_UNUSED std::string *rejectReason)
 
virtual void onIncomingTelecommunicationLink (ONIXS_FIXENGINE_UNUSED const int listenPort, ONIXS_FIXENGINE_UNUSED const int counterpartyPort, ONIXS_FIXENGINE_UNUSED const std::string &counterpartyIpAddress, ONIXS_FIXENGINE_UNUSED std::string *rejectReason)
 
virtual void onError (EngineErrorReason::Enum reason, const std::string &description)=0
 
virtual void onWarning (EngineWarningReason::Enum reason, const std::string &description)=0
 

Detailed Description

Definition at line 76 of file IEngineListener.h.

Constructor & Destructor Documentation

virtual ~IEngineListener ( )
virtual
Note
The FIX Engine does NOT manage the lifetime of this listener.

Member Function Documentation

virtual void onError ( EngineErrorReason::Enum  reason,
const std::string &  description 
)
pure virtual

Called when an error is detected.

Parameters
[in]reasonThe error reason.
[in]descriptionThe error description.
virtual void onIncomingConnection ( ONIXS_FIXENGINE_UNUSED const FlatMessage incomingLogon,
ONIXS_FIXENGINE_UNUSED const int  listenPort,
ONIXS_FIXENGINE_UNUSED const int  counterpartyPort,
ONIXS_FIXENGINE_UNUSED const std::string &  counterpartyIpAddress,
ONIXS_FIXENGINE_UNUSED std::string *  rejectReason 
)
inlinevirtual

Called when an incoming FIX connection is detected.

If the rejectReason is set, the incoming FIX connection will be rejected, and the Logout(5) message will be sent to the counterparty.

Parameters
[in]incomingLogonThe incoming Logon message.
[in]listenPortThe listen port.
[in]counterpartyPortThe counterparty port.
[in]counterpartyIpAddressThe counterparty IP address.
[out]rejectReasonTo send the Logout message before closing the rejected connection, set the rejection description to this parameter.

Definition at line 117 of file IEngineListener.h.

virtual void onIncomingTelecommunicationLink ( ONIXS_FIXENGINE_UNUSED const int  listenPort,
ONIXS_FIXENGINE_UNUSED const int  counterpartyPort,
ONIXS_FIXENGINE_UNUSED const std::string &  counterpartyIpAddress,
ONIXS_FIXENGINE_UNUSED std::string *  rejectReason 
)
inlinevirtual

Called when an incoming TCP connection is detected.

If the rejectReason is set, the incoming TCP connection will be rejected.

Parameters
[in]listenPortThe listen port.
[in]counterpartyPortThe counterparty port.
[in]counterpartyIpAddressThe counterparty IP address.
[out]rejectReasonTo send the Logout message before closing the rejected connection, set the rejection description to this parameter.

Definition at line 132 of file IEngineListener.h.

virtual void onUnknownIncomingConnection ( const FlatMessage incomingLogon,
const int  listenPort,
const int  counterpartyPort,
const std::string &  counterpartyIpAddress,
std::string *  rejectReason 
)
pure virtual

Called when an unknown incoming FIX connection is detected.

To accept the connection, a dynamic new session may be created in scope of this callback with an appropriate TargetCompID, SenderCompID and FIX version/dialect. This dynamically created session should be logon as an acceptor otherwise the incoming connection will be rejected.

If the dynamic session will not be created, the incoming FIX connection will be rejected, and the rejectReason could be specified then the Logout(5) message will be sent to the counterparty.

Parameters
[in]incomingLogonThe incoming Logon message. In general it is needed to examine the content and properties of this message to create an appropriate acceptor.
[in]listenPortThe listen port.
[in]counterpartyPortThe counterparty port.
[in]counterpartyIpAddressThe counterparty IP address.
[out]rejectReasonTo send the Logout message before closing the rejected connection, set the rejection description to this parameter.
virtual void onWarning ( EngineWarningReason::Enum  reason,
const std::string &  description 
)
pure virtual

Called when a warning is detected.

Parameters
[in]reasonThe warning reason.
[in]descriptionThe warning description.

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