22 #ifndef __M2ETIS_NET_NETWORKCALLBACKINTERFACE_H__
23 #define __M2ETIS_NET_NETWORKCALLBACKINTERFACE_H__
42 template<
class NetworkType>
virtual bool forward(typename message::NetworkMessage< NetworkType >::Ptr message, const typename NodeHandle< NetworkType >::Ptr hint)=0
called if a message is forwarded by your node
Generic interface for the callback-class used for the network.
virtual void deliver(typename message::NetworkMessage< NetworkType >::Ptr message)=0
called if a message is delivered to your node.
virtual ~NetworkCallbackInterface()
boost::shared_ptr< const NodeHandle< NetworkType > > Ptr_const
boost::shared_ptr< NetworkMessage > Ptr
boost::shared_ptr< NodeHandle< NetworkType > > Ptr
virtual void update(const typename NetworkType::Key &key, const typename NodeHandle< NetworkType >::Ptr_const handle, bool joined)=0
called on node joins or leaves
NetworkCallbackInterface()