#include <network-monitor-impl-osx.hpp>
Public Member Functions | |
NetworkMonitorImplOsx (boost::asio::io_service &io) | |
~NetworkMonitorImplOsx () | |
uint32_t | getCapabilities () const final |
shared_ptr< const NetworkInterface > | getNetworkInterface (const std::string &ifname) const final |
std::vector< shared_ptr< const NetworkInterface > > | listNetworkInterfaces () const final |
Public Member Functions inherited from ndn::net::NetworkMonitorImpl | |
virtual | ~NetworkMonitorImpl ()=default |
Additional Inherited Members | |
Public Types inherited from ndn::net::NetworkMonitorImpl | |
using | Error = NetworkMonitor::Error |
Public Attributes inherited from ndn::net::NetworkMonitorImpl | |
util::Signal< NetworkMonitorImpl > | onEnumerationCompleted |
util::Signal< NetworkMonitorImpl, shared_ptr< const NetworkInterface > > | onInterfaceAdded |
util::Signal< NetworkMonitorImpl, shared_ptr< const NetworkInterface > > | onInterfaceRemoved |
util::Signal< NetworkMonitorImpl > | onNetworkStateChanged |
Static Protected Member Functions inherited from ndn::net::NetworkMonitorImpl | |
static shared_ptr< NetworkInterface > | makeNetworkInterface () |
Definition at line 46 of file network-monitor-impl-osx.hpp.
ndn::net::NetworkMonitorImplOsx::NetworkMonitorImplOsx | ( | boost::asio::io_service & | io | ) |
Definition at line 105 of file network-monitor-impl-osx.cpp.
References ndn::detail::CFReleaser< T >::get(), and NDN_THROW.
ndn::net::NetworkMonitorImplOsx::~NetworkMonitorImplOsx | ( | ) |
Definition at line 149 of file network-monitor-impl-osx.cpp.
References ndn::detail::CFReleaser< T >::get().
|
inlinefinalvirtual |
Implements ndn::net::NetworkMonitorImpl.
Definition at line 54 of file network-monitor-impl-osx.hpp.
References ndn::net::NetworkMonitor::CAP_ADDR_ADD_REMOVE, ndn::net::NetworkMonitor::CAP_ENUM, ndn::net::NetworkMonitor::CAP_IF_ADD_REMOVE, ndn::net::NetworkMonitor::CAP_STATE_CHANGE, getNetworkInterface(), listNetworkInterfaces(), and websocketpp::transport::asio::socket::error::socket.
|
finalvirtual |
Implements ndn::net::NetworkMonitorImpl.
Definition at line 158 of file network-monitor-impl-osx.cpp.
Referenced by getCapabilities().
|
finalvirtual |
Implements ndn::net::NetworkMonitorImpl.
Definition at line 165 of file network-monitor-impl-osx.cpp.
References ndn::net::DOWN, emitSignal, ndn::detail::cfstring::fromStdString(), ndn::detail::CFReleaser< T >::get(), ndn::net::NetworkInterface::getName(), ndn::net::NetworkMonitorImpl::makeNetworkInterface(), ndn::ethernet::MAX_DATA_LEN, NDN_LOG_DEBUG, NDN_LOG_WARN, ndn::net::NetworkMonitorImpl::onEnumerationCompleted, ndn::net::NetworkMonitorImpl::onInterfaceAdded, ndn::net::NetworkMonitorImpl::onNetworkStateChanged, ndn::net::RUNNING, ndn::scheduler::Scheduler::schedule(), ndn::detail::cfstring::toStdString(), and ndn::net::UNKNOWN.
Referenced by getCapabilities().