libjmmcg
build_2783
A C++ library containing an eclectic mix of useful, advanced components.
|
An implementation of the connectivity policy for the MIT protocol. More...
#include <connectivity_policy.hpp>
Classes | |
struct | gateways_t |
Public Types | |
enum | : unsigned { max_attempts =3 } |
using | logon_args_t = LogonT |
using | endpoint_t = std::pair< boost::asio::ip::address, unsigned short > |
Public Member Functions | |
connectivity_policy (gateways_t const &gws, logon_args_t const &logon, logoff_args_t const &logoff) noexcept(true) | |
template<class ConnectFn > | |
void | operator() (ConnectFn const &cnx) const noexcept(false) |
Public Attributes | |
const gateways_t | gateways |
const logon_args_t | logon_args |
const logoff_args_t | logoff_args |
Static Public Attributes | |
static constexpr std::chrono::seconds | min_timeout {5} |
An implementation of the connectivity policy for the MIT protocol.
From section 4.4 "Connectivity Policy" of [1]. Note that BIT is the same, but OLSO & TRQ are unclear regarding this policy, so we'll assume it is the same. [1] "MIT203 - MILLENNIUM EXCHANGE Native Trading Gateway" Issue 11.6, 17 August 2015.
Definition at line 111 of file connectivity_policy.hpp.
using isimud::exchanges::MIT::common::connectivity_policy< LogonT >::endpoint_t = std::pair<boost::asio::ip::address, unsigned short> |
Definition at line 131 of file connectivity_policy.hpp.
using isimud::exchanges::MIT::common::connectivity_policy< LogonT >::logon_args_t = LogonT |
Definition at line 130 of file connectivity_policy.hpp.
anonymous enum : unsigned |
Enumerator | |
---|---|
max_attempts |
Definition at line 143 of file connectivity_policy.hpp.
|
inlinenoexcept |
Definition at line 91 of file connectivity_policy_impl.hpp.
|
inlinenoexcept |
Definition at line 97 of file connectivity_policy_impl.hpp.
const gateways_t isimud::exchanges::MIT::common::connectivity_policy< LogonT >::gateways |
Definition at line 147 of file connectivity_policy.hpp.
const logoff_args_t isimud::exchanges::MIT::common::connectivity_policy< LogonT >::logoff_args |
Definition at line 149 of file connectivity_policy.hpp.
const logon_args_t isimud::exchanges::MIT::common::connectivity_policy< LogonT >::logon_args |
Definition at line 148 of file connectivity_policy.hpp.
|
inlinestaticconstexpr |
Definition at line 146 of file connectivity_policy.hpp.