#include <OnixS/FIXEngine/FIX/IEngineListener.h>
Definition at line 76 of file IEngineListener.h.
- Note
- FIX Engine does NOT manage the lifetime of this listener.
Called when an error is detected.
- Parameters
-
[in] | reason | Error reason. |
[in] | description | Error description. |
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 dynamic new session may be created in scope of this callback with appropriate TargetCompID, SenderCompID and FIX version/dialect. This dynamically created session should be logon as acceptor otherwise the incoming connection will be rejected.
If the dynamic session will not be created then incoming connection will be rejected and the rejectReason could be specified then the Logout(5) message will be sent to the counterparty.
- Parameters
-
[in] | incomingLogon | Incoming Logon message. In general it is needed to examine the content and properties of this message to create appropriate acceptor. |
[in] | listenPort | Listen port. |
[in] | counterpartyPort | Counterparty port. |
[in] | counterpartyIpAddress | Counterparty IP address. |
[out] | rejectReason | To send the Logout message before closing the rejected connection set the rejection description to this parameter. |
Called when an warning is detected.
- Parameters
-
[in] | reason | Warning reason. |
[in] | description | Warning description. |
The documentation for this class was generated from the following file: