22 #ifndef __M2ETIS_NET_NETWORKINTERFACE_H__
23 #define __M2ETIS_NET_NETWORKINTERFACE_H__
34 template<
class Network>
35 class NetworkCallbackInterface;
44 template<
class NetworkType>
virtual void send(const typename message::NetworkMessage< NetworkType >::Ptr msg, typename NodeHandle< NetworkType >::Ptr_const hint)=0
Sends a message to the node which is responsible for the given key. Provide a hint for better routing...
net::NetworkCallbackInterface< NetworkType > * _callback
returns an array of count neighbor nodes with priority to closer nodes.
void setCallback(NetworkCallbackInterface< NetworkType > *cb)
Sets the callback-object on which the defined callbacks will be called.
Generic interface for the callback-class used for the network.
virtual void registerMessageType(const typename NetworkType::MessageType type, const bool ack) const =0
register a messagetype. Only registered types are sent.
boost::shared_ptr< const NodeHandle< NetworkType > > Ptr_const
virtual ~NetworkInterface()
message::MessageType MessageType
boost::shared_ptr< NetworkMessage > Ptr
boost::shared_ptr< NodeHandle< NetworkType > > Ptr
virtual NodeHandle< NetworkType >::Ptr getSelfNodeHandle() const =0
query your NodeHandle. You may query that for it's key.