22 #ifndef __M2ETIS_NET_NODEHANDLE_H__
23 #define __M2ETIS_NET_NODEHANDLE_H__
32 #include "boost/shared_ptr.hpp"
43 template<
class NetworkType>
57 ss << key_.
toStr() <<
"\t(" << hostname_ <<
":" << port_ <<
")";
61 typedef boost::shared_ptr<const NodeHandle<NetworkType>>
Ptr_const;
62 typedef boost::shared_ptr<NodeHandle<NetworkType>>
Ptr;
std::string toStr() const
Gets a string representation of the key.
std::string to_str() const
NodeHandle in different structured p2p-systems.
boost::shared_ptr< const NodeHandle< NetworkType > > Ptr_const
boost::shared_ptr< NodeHandle< NetworkType > > Ptr
NodeHandle(typename NetworkType::Key key, const std::string &hostname, const uint16_t port)