#include <OnixS/MTS/Cash/SDP/Handler.h>
|
| Handler (const HandlerSettings &settings) |
|
virtual | ~Handler () |
|
void | connect (const ConnectionSettings &connectionSettings, const LogonSettings &logonSettings, const std::string &hostName, UInt16 port, const std::string &localNetworkInterface="") |
|
void | disconnect () |
|
void | disconnectAsync () |
|
void | replay (const ReplayOptions &options) |
|
void | requestAddressServiceInformation () |
|
void | subscribe (ClassId::Enum classId, SubscribeType::Enum subscribeType=SubscribeType::All) |
|
void | subscribeFiltered (ClassId::Enum classId, UInt32 filterKey, SubscribeType::Enum subscribeType=SubscribeType::All) |
|
void | unsubscribe (ClassId::Enum classId) |
|
UInt32 | act (ActionType::Enum actionType, Class *msg, bool dataInResponse=false) |
|
UInt32 | addFilter (UInt32 filterId, const std::string &value) |
|
void | registerErrorListener (ErrorListener *listener) |
|
void | registerWarningListener (WarningListener *listener) |
|
void | registerHandlerStateListener (HandlerStateListener *listener) |
|
void | registerSessionListener (SessionListener *listener) |
|
void | registerServiceAddressInformationListener (ServiceAddressInformationListener *listener) |
|
void | registerAdminMessageListener (AdminMessageListener *listener) |
|
void | registerClassListener (ClassListener *listener) |
|
void | registerActResultListener (ActResultListener *listener) |
|
void | registerSubscriptionListener (SubscriptionListener *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 () |
|
OnixS MTS Cash/SDP Handler
Definition at line 38 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. |
perform action
- Parameters
-
UInt32 addFilter |
( |
UInt32 |
filterId, |
|
|
const std::string & |
value |
|
) |
| |
add filter return filter key
void connect |
( |
const ConnectionSettings & |
connectionSettings, |
|
|
const LogonSettings & |
logonSettings, |
|
|
const std::string & |
hostName, |
|
|
UInt16 |
port, |
|
|
const std::string & |
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. |
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 action result 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 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 exchange 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 notification abaout address service information. 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 action result 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
-
Replays previously logged data.
void requestAddressServiceInformation |
( |
| ) |
|
subscribe to market information
- Parameters
-
- Note
- The subscribed information will be provided by corresponding callbacks.
- Exceptions
-
OperationException | Attempt to send data before connection creation |
std::exception | with system dependent message if requesting has been failed |
subscribe to market information with filter
unsubscribe from market information
- Parameters
-
classId | ClassId to unsubscribe from. |
- Exceptions
-
OperationException | Attempt to send data before connection creation |
std::exception | with system dependent message if requesting has been failed |
static const std::string version |
( |
| ) |
|
|
static |
The documentation for this class was generated from the following file: