|
| static const std::string & | version () |
Definition at line 45 of file Handler.h.
◆ Handler() [1/2]
Performs instance initialization.
- Parameters
-
| settings | defines values for various options which affect handler behavior like enabling logging during execution of the handler. |
◆ ~Handler()
◆ Handler() [2/2]
◆ connect() [1/2]
| void connect |
( |
const std::string & | hostName, |
|
|
std::uint16_t | port, |
|
|
const Logon & | logon, |
|
|
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. |
◆ connect() [2/2]
| void connect |
( |
const std::string & | primaryHostName, |
|
|
std::uint16_t | primaryPort, |
|
|
const std::string & | secondaryHostName, |
|
|
std::uint16_t | secondaryPort, |
|
|
const Logon & | logon, |
|
|
const std::string & | 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. |
◆ disconnect()
Force session disconnect.
- Note
- Blocks until the Session Logout procedure is finished.
◆ disconnectAsync()
Async force session disconnect.
◆ licenseExpirationDate()
| const std::string & licenseExpirationDate |
( |
| ) |
const |
Returns the license expiration date.
Date format is YYYYMMDD.
◆ log()
Logs the given user-level message to the handler log.
◆ operator=()
◆ registerConnectionListener()
Assigns listener for connection 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
-
◆ registerConnectionStateListener()
Assigns listener for connection 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
-
◆ registerErrorListener()
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
-
◆ registerHandlerStateListener()
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
-
◆ registerOrderHandlingListener()
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
-
◆ registerSessionListener()
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
-
◆ registerWarningListener()
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
-
◆ state()
◆ version()
| const std::string & version |
( |
| ) |
|
|
static |