|
IBR-DTN
1.0.0
|
#include <IPNDAgent.h>


Public Member Functions | |
| IPNDAgent (int port) | |
| virtual | ~IPNDAgent () |
| void | add (const ibrcommon::vaddress &address) |
| void | bind (const ibrcommon::vinterface &net) |
| virtual const std::string | getName () const |
| void | eventNotify (const ibrcommon::LinkEvent &evt) |
| void | raiseEvent (const dtn::net::P2PDialupEvent &evt) throw () |
| void | onAdvertiseBeacon (const ibrcommon::vinterface &iface, const DiscoveryBeacon &beacon) throw () |
Public Member Functions inherited from dtn::core::EventReceiver< dtn::net::P2PDialupEvent > | |
| virtual | ~EventReceiver () |
Public Member Functions inherited from dtn::daemon::IndependentComponent | |
| IndependentComponent () | |
| virtual | ~IndependentComponent () |
| virtual void | initialize () throw () |
| virtual void | startup () throw () |
| virtual void | terminate () throw () |
Public Member Functions inherited from dtn::daemon::Component | |
| virtual | ~Component ()=0 |
Public Member Functions inherited from dtn::net::DiscoveryBeaconHandler | |
| virtual | ~DiscoveryBeaconHandler ()=0 |
| virtual void | onUpdateBeacon (const ibrcommon::vinterface &iface, DiscoveryBeacon &beacon) throw (NoServiceHereException) |
Protected Member Functions | |
| virtual void | componentRun () throw () |
| virtual void | componentUp () throw () |
| virtual void | componentDown () throw () |
| void | __cancellation () throw () |
Protected Member Functions inherited from dtn::daemon::IndependentComponent | |
| void | run () throw () |
Definition at line 45 of file IPNDAgent.h.
| dtn::net::IPNDAgent::IPNDAgent | ( | int | port | ) |
Definition at line 54 of file IPNDAgent.cpp.
|
virtual |
Definition at line 63 of file IPNDAgent.cpp.
|
protectedvirtual | |||||||||||||
This method is called after componentDown() and should should guarantee that blocking calls in componentRun() will unblock.
Implements dtn::daemon::IndependentComponent.
Definition at line 514 of file IPNDAgent.cpp.
| void dtn::net::IPNDAgent::add | ( | const ibrcommon::vaddress & | address | ) |
Definition at line 68 of file IPNDAgent.cpp.
| void dtn::net::IPNDAgent::bind | ( | const ibrcommon::vinterface & | net | ) |
Definition at line 73 of file IPNDAgent.cpp.
|
protectedvirtual | |||||||||||||
This method is called if the component should stop. Clean-up code should be inserted here.
Implements dtn::daemon::IndependentComponent.
Definition at line 404 of file IPNDAgent.cpp.
References dtn::core::BundleCore::getDiscoveryAgent(), dtn::core::BundleCore::getInstance(), dtn::core::EventDispatcher< E >::remove(), and dtn::net::DiscoveryAgent::unregisterService().

|
protectedvirtual | |||||||||||||
This is the run method. The component should loop in there until componentDown() or __cancellation() is called.
Implements dtn::daemon::IndependentComponent.
Definition at line 425 of file IPNDAgent.cpp.
References dtn::core::Node::CONN_TCPIP, dtn::core::BundleCore::getDiscoveryAgent(), dtn::core::BundleCore::getInstance(), dtn::net::DiscoveryService::getParameters(), dtn::net::DiscoveryAgent::obtainBeacon(), dtn::net::DiscoveryAgent::onBeaconReceived(), dtn::net::DiscoveryBeacon::setEID(), TAG, and dtn::net::DiscoveryService::update().

|
protectedvirtual | |||||||||||||
Is called in preparation of the component. Before componentRun() is called.
Implements dtn::daemon::IndependentComponent.
Definition at line 332 of file IPNDAgent.cpp.
References dtn::core::EventDispatcher< E >::add(), dtn::core::BundleCore::getDiscoveryAgent(), dtn::core::BundleCore::getInstance(), and dtn::net::DiscoveryAgent::registerService().

| void dtn::net::IPNDAgent::eventNotify | ( | const ibrcommon::LinkEvent & | evt | ) |
Definition at line 294 of file IPNDAgent.cpp.
|
virtual |
Implements dtn::daemon::Component.
Definition at line 520 of file IPNDAgent.cpp.
|
virtual | ||||||||||||||||||||
This method is called by the DiscoveryAgent every time a beacon is ready for advertisement
Reimplemented from dtn::net::DiscoveryBeaconHandler.
Definition at line 202 of file IPNDAgent.cpp.
|
virtual | ||||||||||||||
Implements dtn::core::EventReceiver< dtn::net::P2PDialupEvent >.
Definition at line 240 of file IPNDAgent.cpp.
References dtn::core::BundleCore::getDiscoveryAgent(), dtn::core::BundleCore::getInstance(), dtn::net::P2PDialupEvent::INTERFACE_DOWN, dtn::net::P2PDialupEvent::INTERFACE_UP, dtn::net::DiscoveryAgent::registerService(), and dtn::net::DiscoveryAgent::unregisterService().
