#include <OnixS/CboeCFE/Trading/BOE/Handler.h>
|
| Handler (const HandlerSettings &settings) |
|
virtual | ~Handler () |
|
void | connect (const LogonSettings &logonSettings, const std::string &hostName, Port port, const std::string &localNetworkInterface="", const PortRange &localPortRange=PortRange(0, 0)) |
|
void | disconnect () |
|
void | disconnectAsync () |
|
Port | localPort () |
|
void | registerErrorListener (ErrorListener *listener) |
|
void | registerWarningListener (WarningListener *listener) |
|
void | registerHandlerStateListener (HandlerStateListener *listener) |
|
void | registerSessionListener (SessionListener *listener) |
|
void | registerMessageListener (MessageListener *listener) |
|
void | registerReplayListener (ReplayListener *listener) |
|
UInt32 | send (const OutgoingMessage &) |
|
void | warmup (OutgoingMessage &, int warmupFlags=0) |
|
void | nextSendingSeqNum (SeqNumber value) |
|
SeqNumber | nextSendingSeqNum () |
|
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 CBOE CFE Binary Order Entry (BOE) Handler
Definition at line 50 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 LogonSettings & |
logonSettings, |
|
|
const std::string & |
hostName, |
|
|
Port |
port, |
|
|
const std::string & |
localNetworkInterface = "" , |
|
|
const PortRange & |
localPortRange = PortRange(0, 0) |
|
) |
| |
Establishes the connection.
- Note
- Blocks until the logon reply is received.
-
Should be called only when Handler is disconnected.
- Parameters
-
logonSettings | Initial logon message parameters. |
hostName | Hostname to connect to. |
port | Port number to connect to. |
localNetworkInterface | Local network interface. |
localPortRange | Range to choose local port from. |
- 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.
- Returns
- the local network port number.
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.
Sets the next sequence number for sending messages.
Gets the next sequence number for sending messages.
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 message 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 message 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 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 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
-
static const std::string version |
( |
| ) |
|
|
static |
The documentation for this class was generated from the following file: