IBR-DTNSuite
0.12
|
#include <WifiP2PManager.h>
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 |
Definition at line 39 of file WifiP2PManager.h.
dtn::net::WifiP2PManager::WifiP2PManager | ( | const std::string & | ctrlpath) |
Definition at line 35 of file WifiP2PManager.cpp.
|
virtual |
Definition at line 42 of file WifiP2PManager.cpp.
References ibrcommon::JoinableThread::join().
|
virtual |
Implements dtn::daemon::IndependentComponent.
Definition at line 48 of file WifiP2PManager.cpp.
|
virtual |
Implements dtn::daemon::IndependentComponent.
Definition at line 79 of file WifiP2PManager.cpp.
References dtn::core::BundleCore::getConnectionManager(), dtn::core::BundleCore::getInstance(), IBRCOMMON_LOGGER_DEBUG_TAG, IBRCOMMON_LOGGER_ENDL, IBRCOMMON_LOGGER_TAG, ibrcommon::LogLevel::info, and dtn::net::ConnectionManager::remove().
|
virtual |
Implements dtn::daemon::IndependentComponent.
Definition at line 62 of file WifiP2PManager.cpp.
References IBRCOMMON_LOGGER_DEBUG_TAG, IBRCOMMON_LOGGER_ENDL, and ibrcommon::Thread::sleep().
|
virtual |
Implements dtn::daemon::IndependentComponent.
Definition at line 52 of file WifiP2PManager.cpp.
References dtn::net::ConnectionManager::add(), dtn::core::BundleCore::getConnectionManager(), dtn::core::BundleCore::getInstance(), IBRCOMMON_LOGGER_ENDL, IBRCOMMON_LOGGER_TAG, and ibrcommon::LogLevel::info.
|
virtual |
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.
|
virtual |
Definition at line 250 of file WifiP2PManager.cpp.
References dtn::net::P2PDialupExtension::fireInterfaceUp(), and ibrcommon::Thread::sleep().
|
virtual |
Definition at line 267 of file WifiP2PManager.cpp.
References dtn::net::P2PDialupExtension::fireInterfaceDown(), IBRCOMMON_LOGGER_DEBUG_TAG, and IBRCOMMON_LOGGER_ENDL.
|
virtual |
Definition at line 217 of file WifiP2PManager.cpp.
References IBRCOMMON_LOGGER_DEBUG_TAG, and IBRCOMMON_LOGGER_ENDL.
|
virtual |
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.
|
virtual |
Implements dtn::daemon::Component.
Definition at line 108 of file WifiP2PManager.cpp.
|
virtual |
Implements dtn::net::P2PDialupExtension.
Definition at line 113 of file WifiP2PManager.cpp.
References dtn::core::Node::CONN_P2P_WIFI.
Referenced by peerFound().
|
virtual |
Definition at line 299 of file WifiP2PManager.cpp.
References IBRCOMMON_LOGGER_ENDL, IBRCOMMON_LOGGER_TAG, and ibrcommon::LogLevel::notice.
|
virtual |
Definition at line 309 of file WifiP2PManager.cpp.
References IBRCOMMON_LOGGER_DEBUG_TAG, and IBRCOMMON_LOGGER_ENDL.
|
virtual |
Definition at line 304 of file WifiP2PManager.cpp.
References ibrcommon::LogLevel::error, IBRCOMMON_LOGGER_ENDL, and IBRCOMMON_LOGGER_TAG.
|
virtual |
Definition at line 172 of file WifiP2PManager.cpp.
References dtn::net::P2PDialupExtension::fireDiscovered(), getProtocol(), and dtn::core::Node::NODE_P2P_DIALUP.