dpyMwClient.h File Reference
#include <boost/shared_ptr.hpp>
#include <boost/asio.hpp>
#include <boost/make_shared.hpp>
#include <boost/any.hpp>
#include <boost/system/error_code.hpp>
#include <boost/function.hpp>
#include <boost/enable_shared_from_this.hpp>
#include <boost/chrono.hpp>
#include <boost/asio/basic_waitable_timer.hpp>
#include <boost/thread.hpp>
Include dependency graph for dpyMwClient.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  DpyMwClient
 Manages dealer and susbriber. More...
 

Typedefs

typedef boost::function< void(const std::string &, boost::any, int)> f_proto_message_client
 Prototype of the function to call depending on the message received. More...
 
typedef std::map< uint64_t, f_proto_message_clientmap_proto_register_client
 Map to keep functions with a type of message associated. More...
 
typedef boost::function< void(const bool &alive)> f_hearbeat_handler
 Prototype of the handler function used to keep track of service availability. More...
 
typedef boost::asio::basic_waitable_timer< boost::chrono::steady_clock > steady_timer
 Typedef to use a steady timer.
 

Enumerations

enum  ServiceState { UNKNOWN, ACTIVE, DISCONNECTED }
 Service states. More...
 

Typedef Documentation

◆ f_hearbeat_handler

Parameters
alivetrue if the associated service is available , false otherwise

◆ f_proto_message_client

Parameters
Firstparameter is the content of the message.
Secondparameter is the handler of the callback
Thirdparameter is the error code

◆ map_proto_register_client

Parameters
IDof the type of message.
Lambdafunction associated.

Enumeration Type Documentation

◆ ServiceState

enum ServiceState
strong
Enumerator
UNKNOWN 

Unknown service state.

ACTIVE 

Service is active.

DISCONNECTED 

Service is not active.