Manages dealer and susbriber.

#include <dpyMwClient.h>

Inheritance diagram for DpyMwClient:

Public Member Functions

 DpyMwClient (std::string &ip, int dport, int sport)
 
void start ()
 
void stop ()
 
void subscribe (int messageType, boost::any handler)
 
void unsubscribe (int messageType)
 
bool isAlive ()
 
void monitorServiceAvailability_S (const f_hearbeat_handler &handler)
 
void monitorServiceAvailability_U ()
 

Protected Member Functions

void sendRequest (int requestType, int responseType, std::string content, boost::any handler, int ms_timeout=2000)
 
virtual void RegisterCallbacks ()=0
 

Protected Attributes

map_proto_register_client m_register_map
 
std::mutex m_map_mutex
 

Member Function Documentation

virtual void RegisterCallbacks ( )
protectedpure virtual

Register callbacks

Member Data Documentation

std::mutex m_map_mutex
protected

Map mutex

map_proto_register_client m_register_map
protected

Holds handlers for received messages