m2etis
0.4
|
creates connections using boosts UdpSocket More...
#include <UdpWrapper.h>
Public Member Functions | |
UdpWrapper (const std::string &ownIP, uint16_t listenPort, const std::string &hostIP, uint16_t hostPort) | |
~UdpWrapper () | |
void | send (const message::NetworkMessage< net::NetworkType< net::UDP >>::Ptr msg, net::NodeHandle< net::NetworkType< net::UDP >>::Ptr_const hint) |
calls the other send method More... | |
void | send (const message::NetworkMessage< net::NetworkType< net::UDP >>::Ptr msg) |
sends message More... | |
net::NodeHandle< net::NetworkType< net::UDP > >::Ptr | getSelfNodeHandle () const |
returns pointer with own data More... | |
void | registerMessageType (const message::MessageType type, const bool ack) const |
Not used right now. More... | |
net::NetworkType< net::UDP >::Key | getRoot () const |
returns root node More... | |
Public Member Functions inherited from m2etis::net::NetworkInterface< net::NetworkType< net::UDP > > | |
virtual | ~NetworkInterface () |
void | setCallback (NetworkCallbackInterface< net::NetworkType< net::UDP > > *cb) |
Sets the callback-object on which the defined callbacks will be called. More... | |
virtual void | send (const typename message::NetworkMessage< net::NetworkType< net::UDP > >::Ptr msg, typename NodeHandle< net::NetworkType< net::UDP > >::Ptr_const hint)=0 |
Sends a message to the node which is responsible for the given key. Provide a hint for better routing. More... | |
virtual void | registerMessageType (const typename net::NetworkType< net::UDP >::MessageType type, const bool ack) const =0 |
register a messagetype. Only registered types are sent. More... | |
Additional Inherited Members | |
Protected Attributes inherited from m2etis::net::NetworkInterface< net::NetworkType< net::UDP > > | |
net::NetworkCallbackInterface< net::NetworkType< net::UDP > > * | _callback |
returns an array of count neighbor nodes with priority to closer nodes. More... | |
creates connections using boosts UdpSocket
Definition at line 44 of file UdpWrapper.h.
m2etis::wrapper::udp::UdpWrapper::UdpWrapper | ( | const std::string & | ownIP, |
uint16_t | listenPort, | ||
const std::string & | hostIP, | ||
uint16_t | hostPort | ||
) |
m2etis::wrapper::udp::UdpWrapper::~UdpWrapper | ( | ) |
|
inline |
returns root node
Definition at line 88 of file UdpWrapper.h.
|
inlinevirtual |
returns pointer with own data
Implements m2etis::net::NetworkInterface< net::NetworkType< net::UDP > >.
Definition at line 63 of file UdpWrapper.h.
void m2etis::wrapper::udp::UdpWrapper::registerMessageType | ( | const message::MessageType | type, |
const bool | ack | ||
) | const |
Not used right now.
void m2etis::wrapper::udp::UdpWrapper::send | ( | const message::NetworkMessage< net::NetworkType< net::UDP >>::Ptr | msg, |
net::NodeHandle< net::NetworkType< net::UDP >>::Ptr_const | hint | ||
) |
calls the other send method
void m2etis::wrapper::udp::UdpWrapper::send | ( | const message::NetworkMessage< net::NetworkType< net::UDP >>::Ptr | msg | ) |
sends message