Manages router and publisher.

#include <dpyMwServer.h>

Inheritance diagram for DpyMwServer:

Public Member Functions

 DpyMwServer (boost::asio::io_service &io, int rport, int pport)
 
void start ()
 
void stop ()
 
void publish (int messageType, int frecuency)
 

Protected Member Functions

void sendResponse (int messageType, std::string content, const std::string &id_dealer, int msgId, boost::system::error_code &ec)
 
void sendPublication (int messageType, std::string content, boost::system::error_code &ec)
 
virtual void RegisterCallbacks ()=0
 
virtual void RegisterPublications ()=0
 

Protected Attributes

boost::asio::io_service & mIo
 
map_proto_register_server m_register_map
 
map_proto_register_server m_publisher_map
 
std::mutex m_map_mutex
 

Member Function Documentation

virtual void RegisterCallbacks ( )
protectedpure virtual

Register callbacks

virtual void RegisterPublications ( )
protectedpure virtual

Register publications

Member Data Documentation

std::mutex m_map_mutex
protected

Map mutex

map_proto_register_server m_publisher_map
protected

Manages publisher handlers

map_proto_register_server m_register_map
protected

Manages router handlers

boost::asio::io_service& mIo
protected

Io service