IBR-DTN  1.0.0
P2PDialupExtension.cpp
Go to the documentation of this file.
1 /*
2  * P2PDialupExtension.cpp
3  *
4  * Created on: 25.02.2013
5  * Author: morgenro
6  */
7 
9 #include "net/P2PDialupEvent.h"
10 #include "core/BundleCore.h"
11 #include "core/NodeEvent.h"
12 
13 namespace dtn
14 {
15  namespace net
16  {
17 
19  // register at the bundle core
21  }
22 
24  // unregister at the bundle core
26  }
27 
29  {
31  dtn::core::Node n(eid);
32  n.add(uri);
33  cm.add(n);
34  }
35 
37  {
39  dtn::core::Node n(eid);
40  n.add(uri);
41  cm.remove(n);
42  }
43 
45  {
47  dtn::core::Node n(eid);
48  n.add(uri);
49  cm.add(n);
50  }
51 
52  void P2PDialupExtension::fireInterfaceUp(const ibrcommon::vinterface &iface) const
53  {
55  }
56 
57  void P2PDialupExtension::fireInterfaceDown(const ibrcommon::vinterface &iface) const
58  {
60  }
61  } /* namespace routing */
62 } /* namespace dtn */
void fireDisconnected(const dtn::data::EID &eid, const dtn::core::Node::URI &uri) const
void remove(const dtn::core::Node &n)
dtn::net::ConnectionManager & getConnectionManager()
Definition: BundleCore.cpp:260
void fireInterfaceDown(const ibrcommon::vinterface &iface) const
void add(const dtn::core::Node &n)
void add(const URI &u)
Definition: Node.cpp:280
void fireConnected(const dtn::data::EID &eid, const dtn::core::Node::URI &uri) const
void fireInterfaceUp(const ibrcommon::vinterface &iface) const
static void raise(p2p_event_type, const ibrcommon::vinterface &)
void fireDiscovered(const dtn::data::EID &eid, const dtn::core::Node::URI &uri) const
static BundleCore & getInstance()
Definition: BundleCore.cpp:82