#include <OnixS/Eurex/Trading/Handler.h>
|
| Handler (const HandlerSettings &settings) |
|
virtual | ~Handler () |
|
void | connect (const char *hostName, UInt16 port, const Logon &logon, const char *localNetworkInterface="") |
|
void | connect (const char *primaryHostName, UInt16 primaryPort, const char *secondaryHostName, UInt16 secondaryPort, const Logon &logon, const char *localNetworkInterface="") |
|
void | disconnect () |
|
void | disconnectAsync () |
|
UInt32 | send (Message &) |
|
void | registerErrorListener (ErrorListener *listener) |
|
void | registerWarningListener (WarningListener *listener) |
|
void | registerHandlerStateListener (HandlerStateListener *listener) |
|
void | registerSessionListener (SessionListener *listener) |
|
void | registerAdminListener (AdminListener *listener) |
|
void | registerStrategyCreationListener (StrategyCreationListener *listener) |
|
void | registerOrderHandlingListener (OrderHandlingListener *listener) |
|
void | registerQuoteAndCrossRequestListener (QuoteAndCrossRequestListener *listener) |
|
void | registerQuoteHandlingListener (QuoteHandlingListener *listener) |
|
void | registerInfoListener (InfoListener *listener) |
|
void | registerTESListener (TESListener *listener) |
|
void | registerSRQSListener (SRQSListener *listener) |
|
HandlerState::Enum | state () const |
|
void | log (LogLevel::Enum logLevel, const char *logMessage, size_t length) |
|
void | log (LogLevel::Enum logLevel, const char *logMessage) |
|
void | log (LogLevel::Enum logLevel, const std::string &str) |
|
const std::string & | licenseExpirationDate () const |
|
|
static const std::string & | version () |
|
Definition at line 47 of file Handler.h.
Performs instance initialization.
- Parameters
-
settings | defines values for various options which affect handler behavior like enabling logging during execution of the handler. |
void connect |
( |
const char * |
hostName, |
|
|
UInt16 |
port, |
|
|
const Logon & |
logon, |
|
|
const char * |
localNetworkInterface = "" |
|
) |
| |
Establishes the connection.
- Note
- Blocks until the logon reply is received.
-
Should be called only when Handler is disconnected.
- Parameters
-
hostName | Hostname to connect to. |
port | Port number to connect to. |
logon | Initial logon message parameters. |
localNetworkInterface | Local network interface. |
- Exceptions
-
std::exception | Cannot set the local network interface. |
std::exception | Cannot connect to hostname on port. |
std::exception | Cannot configure size of receive buffer for the socket. |
std::exception | Cannot configure size of send buffer for the socket. |
OperationException | Invalid argument is given. |
void connect |
( |
const char * |
primaryHostName, |
|
|
UInt16 |
primaryPort, |
|
|
const char * |
secondaryHostName, |
|
|
UInt16 |
secondaryPort, |
|
|
const Logon & |
logon, |
|
|
const char * |
localNetworkInterface = "" |
|
) |
| |
Establishes the connection.
- Note
- Blocks until the logon reply is received.
-
Should be called only when Handler is disconnected.
- Parameters
-
primaryHostName | Primary hostname to connect to. |
primaryPort | Primary port number to connect to. |
secondaryHostName | Secondary hostname to connect to. |
secondaryPort | Secondary port number to connect to. |
logon | Initial logon message parameters. |
localNetworkInterface | Local network interface. |
- Exceptions
-
std::exception | Cannot set the local network interface. |
std::exception | Cannot connect to hostname on port. |
std::exception | Cannot configure size of receive buffer for the socket. |
std::exception | Cannot configure size of send buffer for the socket. |
OperationException | Invalid argument is given. |
Force session disconnect.
- Note
- Blocks until the Session Logout procedure is finished.
Async force session disconnect.
const std::string& licenseExpirationDate |
( |
| ) |
const |
Returns the license expiration date.
void log |
( |
LogLevel::Enum |
logLevel, |
|
|
const char * |
logMessage, |
|
|
size_t |
length |
|
) |
| |
Logs the given user-level message to the handler log.
Logs the given user-level message to the handler log.
Logs the given user-level message to the handler log.
Assigns listener for administrative events. It's permissible to change the listener multiple times during handler's life-time, but only when handler is in disconnected state.
- Exceptions
-
Assigns listener for errors occurred while executing handler. It's permissible to change the listener multiple times during handler's life-time, but only when handler is in disconnected state.
- Exceptions
-
Assigns listener for state change events occurred while executing handler. It's permissible to change the listener multiple times during handler's life-time, but only when handler is in disconnected state.
- Exceptions
-
Assigns listener for other events. It's permissible to change the listener multiple times during handler's life-time, but only when handler is in disconnected state.
- Exceptions
-
Assigns listener for order handling events. It's permissible to change the listener multiple times during handler's life-time, but only when handler is in disconnected state.
- Exceptions
-
Assigns listener for quote and cross request events. It's permissible to change the listener multiple times during handler's life-time, but only when handler is in disconnected state.
- Exceptions
-
Assigns listener for quote handling events. It's permissible to change the listener multiple times during handler's life-time, but only when handler is in disconnected state.
- Exceptions
-
Assigns listener for session events occurred while executing handler. It's permissible to change the listener multiple times during handler's life-time, but only when handler is in disconnected state.
- Exceptions
-
Assigns listener for SRQS events. It's permissible to change the listener multiple times during handler's life-time, but only when handler is in disconnected state.
- Exceptions
-
Assigns listener for strategy creation events. It's permissible to change the listener multiple times during handler's life-time, but only when handler is in disconnected state.
- Exceptions
-
Assigns listener for TES events. It's permissible to change the listener multiple times during handler's life-time, but only when handler is in disconnected state.
- Exceptions
-
Assigns listener for warnings occurred while executing handler. It's permissible to change the listener multiple times during handler's life-time, but only when handler is in disconnected state.
- Exceptions
-
Send message
- Returns
- MsgSeqNum
- Exceptions
-
OperationException | Attempt to send data before connection creation |
std::exception | with system dependent message if sending has been failed |
static const std::string& version |
( |
| ) |
|
|
static |
The documentation for this class was generated from the following file: