m2etis  0.4
m2etis::wrapper::udp::UdpWrapper Class Reference

creates connections using boosts UdpSocket More...

#include <UdpWrapper.h>

Inheritance diagram for m2etis::wrapper::udp::UdpWrapper:
Inheritance graph

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...
 

Detailed Description

creates connections using boosts UdpSocket

Definition at line 44 of file UdpWrapper.h.

Constructor & Destructor Documentation

m2etis::wrapper::udp::UdpWrapper::UdpWrapper ( const std::string &  ownIP,
uint16_t  listenPort,
const std::string &  hostIP,
uint16_t  hostPort 
)
m2etis::wrapper::udp::UdpWrapper::~UdpWrapper ( )

Member Function Documentation

net::NetworkType<net::UDP>::Key m2etis::wrapper::udp::UdpWrapper::getRoot ( ) const
inline

returns root node

Definition at line 88 of file UdpWrapper.h.

net::NodeHandle<net::NetworkType<net::UDP> >::Ptr m2etis::wrapper::udp::UdpWrapper::getSelfNodeHandle ( ) const
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


The documentation for this class was generated from the following file: