IBR-DTNSuite  0.12
dtn::net::IPNDAgent Class Reference

#include <IPNDAgent.h>

Inheritance diagram for dtn::net::IPNDAgent:
Inheritance graph
Collaboration diagram for dtn::net::IPNDAgent:
Collaboration graph

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::core::Event *evt) throw ()
 
void onAdvertiseBeacon (const ibrcommon::vinterface &iface, const DiscoveryBeacon &beacon) throw ()
 
- Public Member Functions inherited from dtn::core::EventReceiver
virtual ~EventReceiver ()=0
 
- 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 ibrcommon::LinkManager::EventCallback
virtual ~EventCallback ()
 
- 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 ()
 
- Protected Member Functions inherited from ibrcommon::JoinableThread
virtual ~JoinableThread ()=0
 
void join (void) throw (ThreadException)
 
bool isRunning (void)
 
void start (int priority=0) throw (ThreadException)
 
void stop () throw ()
 
 JoinableThread (size_t size=DEFAULT_STACKSIZE)
 

Additional Inherited Members

Detailed Description

Definition at line 44 of file IPNDAgent.h.

Constructor & Destructor Documentation

dtn::net::IPNDAgent::IPNDAgent ( int  port)

Definition at line 54 of file IPNDAgent.cpp.

dtn::net::IPNDAgent::~IPNDAgent ( )
virtual

Definition at line 63 of file IPNDAgent.cpp.

References ibrcommon::vsocket::destroy().

Here is the call graph for this function:

Member Function Documentation

void dtn::net::IPNDAgent::__cancellation ( )
throw (
)
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 520 of file IPNDAgent.cpp.

References ibrcommon::vsocket::down().

Here is the call graph for this function:

void dtn::net::IPNDAgent::add ( const ibrcommon::vaddress address)

Definition at line 68 of file IPNDAgent.cpp.

References IBRCOMMON_LOGGER_ENDL, IBRCOMMON_LOGGER_TAG, ibrcommon::LogLevel::info, and ibrcommon::vaddress::toString().

Here is the call graph for this function:

void dtn::net::IPNDAgent::bind ( const ibrcommon::vinterface net)

Definition at line 73 of file IPNDAgent.cpp.

References IBRCOMMON_LOGGER_ENDL, IBRCOMMON_LOGGER_TAG, ibrcommon::LogLevel::info, and ibrcommon::vinterface::toString().

Here is the call graph for this function:

void dtn::net::IPNDAgent::componentDown ( )
throw (
)
protectedvirtual
const std::string dtn::net::IPNDAgent::getName ( ) const
virtual
See Also
Component::getName()

Implements dtn::daemon::Component.

Definition at line 526 of file IPNDAgent.cpp.

void dtn::net::IPNDAgent::onAdvertiseBeacon ( const ibrcommon::vinterface iface,
const DiscoveryBeacon beacon 
)
throw (
)
virtual

The documentation for this class was generated from the following files: