#include <OnixS/FIXEngine/FIX/IEngineListener.h>
|
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 |
|
Definition at line 76 of file IEngineListener.h.
- Note
- The FIX Engine does NOT manage the lifetime of this listener.
Called when an error is detected.
- Parameters
-
[in] | reason | The error reason. |
[in] | description | The error description. |
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] | incomingLogon | The incoming Logon message. |
[in] | listenPort | The listen port. |
[in] | counterpartyPort | The counterparty port. |
[in] | counterpartyIpAddress | The counterparty IP address. |
[out] | rejectReason | To send the Logout message before closing the rejected connection, set the rejection description to this parameter. |
Definition at line 117 of file IEngineListener.h.
Called when an incoming TCP connection is detected.
If the rejectReason is set, the incoming TCP connection will be rejected.
- Parameters
-
[in] | listenPort | The listen port. |
[in] | counterpartyPort | The counterparty port. |
[in] | counterpartyIpAddress | The counterparty IP address. |
[out] | rejectReason | To 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] | incomingLogon | The incoming Logon message. In general it is needed to examine the content and properties of this message to create an appropriate acceptor. |
[in] | listenPort | The listen port. |
[in] | counterpartyPort | The counterparty port. |
[in] | counterpartyIpAddress | The counterparty IP address. |
[out] | rejectReason | To send the Logout message before closing the rejected connection, set the rejection description to this parameter. |
Called when a warning is detected.
- Parameters
-
[in] | reason | The warning reason. |
[in] | description | The warning description. |
The documentation for this class was generated from the following file: