22 #ifndef __M2ETIS_SIM_OMNETMEDIATOR_H__
23 #define __M2ETIS_SIM_OMNETMEDIATOR_H__
27 #include "m2etis/config/GeneratedEventTypes.h"
54 OmNetMediator(
const std::string & ip,
const int port,
const std::string & known_hostname,
const int known_hostport) : _nodeHandle(new net::NodeHandle<net::NetworkType<net::
OMNET>>), _callback(NULL), _ocallback(NULL), _name(ip), _hostName(known_hostname), _listenPort(port), _hostPort(known_hostport), _root(_hostName +
std::string(
":") +
std::to_string(_hostPort)), _pubsub() {
147 std::string
getSHA1(
int channel_name);
176 std::string _hostName;
boost::shared_ptr< M2Message< EventType > > Ptr
Generic interface for the callback-class used for the network.
NodeHandle in different structured p2p-systems.
message::MessageType MessageType
boost::shared_ptr< NetworkMessage > Ptr