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

#include <WifiP2PManager.h>

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

Public Member Functions

 WifiP2PManager (const std::string &ctrlpath)
 
virtual ~WifiP2PManager ()
 
virtual void __cancellation () throw ()
 
virtual void componentUp () throw ()
 
virtual void componentRun () throw ()
 
virtual void componentDown () throw ()
 
virtual const std::string getName () const
 
virtual dtn::core::Node::Protocol getProtocol () const
 
virtual void connect (const dtn::core::Node::URI &uri)
 
virtual void disconnect (const dtn::core::Node::URI &uri)
 
virtual void peerFound (const wifip2p::Peer &peer)
 
virtual void connectionRequest (const wifip2p::Peer &peer)
 
virtual void connectionEstablished (const wifip2p::Connection &conn)
 
virtual void connectionLost (const wifip2p::Connection &conn)
 
virtual void log (const std::string &tag, const std::string &msg)
 
virtual void log_err (const std::string &tag, const std::string &msg)
 
virtual void log_debug (int debug, const std::string &tag, const std::string &msg)
 
- 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::P2PDialupExtension
 P2PDialupExtension ()
 
virtual ~P2PDialupExtension ()=0
 

Additional Inherited Members

- Protected Member Functions inherited from dtn::daemon::IndependentComponent
void run () throw ()
 
- Protected Member Functions inherited from dtn::net::P2PDialupExtension
void fireDiscovered (const dtn::data::EID &eid, const dtn::core::Node::URI &uri) const
 
void fireDisconnected (const dtn::data::EID &eid, const dtn::core::Node::URI &uri) const
 
void fireConnected (const dtn::data::EID &eid, const dtn::core::Node::URI &uri) const
 
void fireInterfaceUp (const ibrcommon::vinterface &iface) const
 
void fireInterfaceDown (const ibrcommon::vinterface &iface) const
 

Detailed Description

Definition at line 39 of file WifiP2PManager.h.

Constructor & Destructor Documentation

dtn::net::WifiP2PManager::WifiP2PManager ( const std::string &  ctrlpath)

Definition at line 35 of file WifiP2PManager.cpp.

dtn::net::WifiP2PManager::~WifiP2PManager ( )
virtual

Definition at line 42 of file WifiP2PManager.cpp.

References ibrcommon::JoinableThread::join().

Here is the call graph for this function:

Member Function Documentation

void dtn::net::WifiP2PManager::__cancellation ( )
throw (
)
virtual
See Also
Component::__cancellation()

Implements dtn::daemon::IndependentComponent.

Definition at line 48 of file WifiP2PManager.cpp.

void dtn::net::WifiP2PManager::componentDown ( )
throw (
)
virtual
void dtn::net::WifiP2PManager::componentRun ( )
throw (
)
virtual
See Also
Component::componentRun()

Implements dtn::daemon::IndependentComponent.

Definition at line 62 of file WifiP2PManager.cpp.

References IBRCOMMON_LOGGER_DEBUG_TAG, IBRCOMMON_LOGGER_ENDL, and ibrcommon::Thread::sleep().

Here is the call graph for this function:

void dtn::net::WifiP2PManager::componentUp ( )
throw (
)
virtual
void dtn::net::WifiP2PManager::connect ( const dtn::core::Node::URI uri)
virtual
See Also
P2PDialExtension::connect()

Implements dtn::net::P2PDialupExtension.

Definition at line 118 of file WifiP2PManager.cpp.

References IBRCOMMON_LOGGER_DEBUG_TAG, IBRCOMMON_LOGGER_ENDL, and dtn::core::Node::URI::value.

void dtn::net::WifiP2PManager::connectionEstablished ( const wifip2p::Connection &  conn)
virtual
See Also
wifip2p::WifiP2PInterface::connectionEstablished(wifip2p::Connection conn)

Definition at line 250 of file WifiP2PManager.cpp.

References dtn::net::P2PDialupExtension::fireInterfaceUp(), and ibrcommon::Thread::sleep().

Here is the call graph for this function:

void dtn::net::WifiP2PManager::connectionLost ( const wifip2p::Connection &  conn)
virtual
See Also
wifip2p::WifiP2PInterface::connectionLost(wifip2p::Connection conn)

Definition at line 267 of file WifiP2PManager.cpp.

References dtn::net::P2PDialupExtension::fireInterfaceDown(), IBRCOMMON_LOGGER_DEBUG_TAG, and IBRCOMMON_LOGGER_ENDL.

Here is the call graph for this function:

void dtn::net::WifiP2PManager::connectionRequest ( const wifip2p::Peer &  peer)
virtual
See Also
wifip2p::WifiP2PInterface::connectionRequest(wifip2p::Peer peer)

Definition at line 217 of file WifiP2PManager.cpp.

References IBRCOMMON_LOGGER_DEBUG_TAG, and IBRCOMMON_LOGGER_ENDL.

void dtn::net::WifiP2PManager::disconnect ( const dtn::core::Node::URI uri)
virtual
See Also
P2PDialExtension::disconnect()

Implements dtn::net::P2PDialupExtension.

Definition at line 155 of file WifiP2PManager.cpp.

References IBRCOMMON_LOGGER_DEBUG_TAG, IBRCOMMON_LOGGER_ENDL, and dtn::core::Node::URI::value.

const std::string dtn::net::WifiP2PManager::getName ( ) const
virtual
See Also
Component::getName()

Implements dtn::daemon::Component.

Definition at line 108 of file WifiP2PManager.cpp.

dtn::core::Node::Protocol dtn::net::WifiP2PManager::getProtocol ( ) const
virtual
See Also
P2PDialExtension::getProtocol()

Implements dtn::net::P2PDialupExtension.

Definition at line 113 of file WifiP2PManager.cpp.

References dtn::core::Node::CONN_P2P_WIFI.

Referenced by peerFound().

void dtn::net::WifiP2PManager::log ( const std::string &  tag,
const std::string &  msg 
)
virtual
See Also
wifip2p::Logger::log(std::string tag, std::string msg)

Definition at line 299 of file WifiP2PManager.cpp.

References IBRCOMMON_LOGGER_ENDL, IBRCOMMON_LOGGER_TAG, and ibrcommon::LogLevel::notice.

void dtn::net::WifiP2PManager::log_debug ( int  debug,
const std::string &  tag,
const std::string &  msg 
)
virtual
See Also
wifip2p::Logger::log_debug(int debug, std::string tag, std::string msg)

Definition at line 309 of file WifiP2PManager.cpp.

References IBRCOMMON_LOGGER_DEBUG_TAG, and IBRCOMMON_LOGGER_ENDL.

void dtn::net::WifiP2PManager::log_err ( const std::string &  tag,
const std::string &  msg 
)
virtual
See Also
wifip2p::Logger::log_err(std::string tag, std::string msg)

Definition at line 304 of file WifiP2PManager.cpp.

References ibrcommon::LogLevel::error, IBRCOMMON_LOGGER_ENDL, and IBRCOMMON_LOGGER_TAG.

void dtn::net::WifiP2PManager::peerFound ( const wifip2p::Peer &  peer)
virtual
See Also
wifip2p::WifiP2PInterface::peerFound(wifip2p::Peer peer)

Definition at line 172 of file WifiP2PManager.cpp.

References dtn::net::P2PDialupExtension::fireDiscovered(), getProtocol(), and dtn::core::Node::NODE_P2P_DIALUP.

Here is the call graph for this function:


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