22 #ifndef CONNECTIONMANAGER_H_
23 #define CONNECTIONMANAGER_H_
32 #include <ibrcommon/Exceptions.h>
149 const dtn::core::
Node getNeighbor(const dtn::data::
EID &eid) throw (NodeNotAvailableException);
160 virtual const std::
string getName() const;
182 void check_unavailable();
187 void check_available();
192 void check_autoconnect();
197 bool isReachable(const dtn::core::
Node &node) throw ();
202 dtn::core::
Node& getNode(const dtn::data::
EID &eid) throw (NodeNotAvailableException);
205 ibrcommon::Mutex _cl_lock;
209 std::set<
Node::Protocol> _cl_protocols;
212 ibrcommon::Mutex _dialup_lock;
216 ibrcommon::Mutex _node_lock;
219 typedef std::map<dtn::data::
EID, dtn::core::
Node> nodemap;
const std::set< dtn::core::Node > getNeighbors()
ShutdownException(string what="System shutdown")
virtual ~ConnectionManager()
bool isNeighbor(const dtn::core::Node &)
virtual void componentUp()
std::list< dtn::core::Node::Protocol > protocol_list
virtual void componentDown()
void getStats(dtn::net::ConvergenceLayer::stats_data &data)
void add(const dtn::core::Node &n)
void discovered(const dtn::core::Node &node)
std::set< dtn::core::Node::Protocol > protocol_set
void queue(dtn::net::BundleTransfer &job)
const protocol_set getSupportedProtocols()
virtual const std::string getName() const
void raiseEvent(const dtn::core::TimeEvent &evt)
void updateNeighbor(const dtn::core::Node &n)
const dtn::core::Node getNeighbor(const dtn::data::EID &eid)
void open(const dtn::core::Node &node)
NodeNotAvailableException(string what="The requested node is not a neighbor.")
ConnectionNotAvailableException(string what="The requested connection is not available.")