libjmmcg  build_2176
A C++ library containing an eclectic mix of useful, advanced components.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
jmmcg::exchanges::FIX::common::server_hb_t< MsgT > Class Template Reference

Generate heartbeats from the containing simulator. More...

#include <connectivity_policy.hpp>

Public Types

enum  : unsigned { max_missed_heartbeats =5 }
 
using hb_t = MsgT
 The specific heartbeat message type. More...
 

Public Member Functions

template<class ClientCxn >
 server_hb_t (ClientCxn &cxn)
 
 ~server_hb_t () noexcept(true)
 
std::string to_string () const noexcept(false)
 

Static Public Attributes

static constexpr
std::chrono::seconds 
heartbeat_interval {1}
 

Friends

std::ostream & operator<< (std::ostream &os, server_hb_t const &s) noexcept(false)
 

Detailed Description

template<class MsgT>
class jmmcg::exchanges::FIX::common::server_hb_t< MsgT >

Generate heartbeats from the containing simulator.

The simulator generates heartbeats to which the client responds.

Definition at line 72 of file connectivity_policy.hpp.

Member Typedef Documentation

template<class MsgT >
using jmmcg::exchanges::FIX::common::server_hb_t< MsgT >::hb_t = MsgT

The specific heartbeat message type.

Definition at line 75 of file connectivity_policy.hpp.

Member Enumeration Documentation

template<class MsgT >
anonymous enum : unsigned
Enumerator
max_missed_heartbeats 

Definition at line 77 of file connectivity_policy.hpp.

Constructor & Destructor Documentation

template<class MsgT >
template<class ClientCxn >
jmmcg::exchanges::FIX::common::server_hb_t< MsgT >::server_hb_t ( ClientCxn &  cxn)
inlineexplicit

Definition at line 62 of file connectivity_policy_impl.hpp.

template<class MsgT >
jmmcg::exchanges::FIX::common::server_hb_t< MsgT >::~server_hb_t ( )
inlinenoexcept

Definition at line 68 of file connectivity_policy_impl.hpp.

Member Function Documentation

template<class MsgT >
std::string jmmcg::exchanges::FIX::common::server_hb_t< MsgT >::to_string ( ) const
inlinenoexcept

Definition at line 77 of file connectivity_policy_impl.hpp.

Friends And Related Function Documentation

template<class MsgT >
std::ostream& operator<< ( std::ostream &  os,
server_hb_t< MsgT > const &  s 
)
friend

Definition at line 88 of file connectivity_policy.hpp.

Member Data Documentation

template<class MsgT >
constexpr std::chrono::seconds jmmcg::exchanges::FIX::common::server_hb_t< MsgT >::heartbeat_interval {1}
static

Definition at line 80 of file connectivity_policy.hpp.


The documentation for this class was generated from the following files: