m2etis  0.4
m2etis::wrapper::tcp::TcpWrapper Class Reference

creates connections using boosts TcpSocket More...

#include <TcpWrapper.h>

Inheritance diagram for m2etis::wrapper::tcp::TcpWrapper:
Inheritance graph

Public Member Functions

 TcpWrapper (const std::string &listenIP, const uint16_t listenPort, const std::string &connectIP, const uint16_t connectPort)
 
 ~TcpWrapper ()
 
void send (const message::NetworkMessage< net::NetworkType< net::TCP >>::Ptr msg, net::NodeHandle< net::NetworkType< net::TCP >>::Ptr_const hint)
 calls the other send method More...
 
void send (const message::NetworkMessage< net::NetworkType< net::TCP >>::Ptr msg)
 sends message More...
 
net::NodeHandle< net::NetworkType< net::TCP > >::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::TCP >::Key getRoot () const
 returns root node More...
 
- Public Member Functions inherited from m2etis::net::NetworkInterface< net::NetworkType< net::TCP > >
virtual ~NetworkInterface ()
 
void setCallback (NetworkCallbackInterface< net::NetworkType< net::TCP > > *cb)
 Sets the callback-object on which the defined callbacks will be called. More...
 
virtual void send (const typename message::NetworkMessage< net::NetworkType< net::TCP > >::Ptr msg, typename NodeHandle< net::NetworkType< net::TCP > >::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::TCP >::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::TCP > >
net::NetworkCallbackInterface< net::NetworkType< net::TCP > > * _callback
 returns an array of count neighbor nodes with priority to closer nodes. More...
 

Detailed Description

creates connections using boosts TcpSocket

Definition at line 50 of file TcpWrapper.h.

Constructor & Destructor Documentation

m2etis::wrapper::tcp::TcpWrapper::TcpWrapper ( const std::string &  listenIP,
const uint16_t  listenPort,
const std::string &  connectIP,
const uint16_t  connectPort 
)
m2etis::wrapper::tcp::TcpWrapper::~TcpWrapper ( )

Member Function Documentation

net::NetworkType<net::TCP>::Key m2etis::wrapper::tcp::TcpWrapper::getRoot ( ) const
inline

returns root node

Definition at line 90 of file TcpWrapper.h.

net::NodeHandle<net::NetworkType<net::TCP> >::Ptr m2etis::wrapper::tcp::TcpWrapper::getSelfNodeHandle ( ) const
inlinevirtual

returns pointer with own data

Implements m2etis::net::NetworkInterface< net::NetworkType< net::TCP > >.

Definition at line 69 of file TcpWrapper.h.

void m2etis::wrapper::tcp::TcpWrapper::registerMessageType ( const message::MessageType  type,
const bool  ack 
) const

Not used right now.

void m2etis::wrapper::tcp::TcpWrapper::send ( const message::NetworkMessage< net::NetworkType< net::TCP >>::Ptr  msg,
net::NodeHandle< net::NetworkType< net::TCP >>::Ptr_const  hint 
)

calls the other send method

void m2etis::wrapper::tcp::TcpWrapper::send ( const message::NetworkMessage< net::NetworkType< net::TCP >>::Ptr  msg)

sends message


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