ndn::net::NetworkMonitorImpl Class Referenceabstract

#include <ndn-cxx/net/network-monitor.hpp>

+ Inheritance diagram for ndn::net::NetworkMonitorImpl:
+ Collaboration diagram for ndn::net::NetworkMonitorImpl:

Public Types

using Error = NetworkMonitor::Error
 

Public Member Functions

virtual ~NetworkMonitorImpl ()=default
 
virtual uint32_t getCapabilities () const =0
 
virtual shared_ptr< const NetworkInterfacegetNetworkInterface (const std::string &) const =0
 
virtual std::vector< shared_ptr< const NetworkInterface > > listNetworkInterfaces () const =0
 

Public Attributes

util::Signal< NetworkMonitorImplonEnumerationCompleted
 
util::Signal< NetworkMonitorImpl, shared_ptr< const NetworkInterface > > onInterfaceAdded
 
util::Signal< NetworkMonitorImpl, shared_ptr< const NetworkInterface > > onInterfaceRemoved
 
util::Signal< NetworkMonitorImplonNetworkStateChanged
 

Protected Member Functions

template<typename ... TArgs>
void emit_onEnumerationCompleted (const TArgs &... args)
 
template<typename ... TArgs>
void emit_onInterfaceAdded (const TArgs &... args)
 
template<typename ... TArgs>
void emit_onInterfaceRemoved (const TArgs &... args)
 
template<typename ... TArgs>
void emit_onNetworkStateChanged (const TArgs &... args)
 

Static Protected Member Functions

static shared_ptr< NetworkInterfacemakeNetworkInterface ()
 

Detailed Description

Definition at line 131 of file network-monitor.hpp.

Member Typedef Documentation

◆ Error

Constructor & Destructor Documentation

◆ ~NetworkMonitorImpl()

virtual ndn::net::NetworkMonitorImpl::~NetworkMonitorImpl ( )
virtualdefault

Member Function Documentation

◆ emit_onEnumerationCompleted()

template<typename ... TArgs>
void ndn::net::NetworkMonitorImpl::emit_onEnumerationCompleted ( const TArgs &...  args)
inlineprotected

Definition at line 159 of file network-monitor.hpp.

◆ emit_onInterfaceAdded()

template<typename ... TArgs>
void ndn::net::NetworkMonitorImpl::emit_onInterfaceAdded ( const TArgs &...  args)
inlineprotected

Definition at line 160 of file network-monitor.hpp.

◆ emit_onInterfaceRemoved()

template<typename ... TArgs>
void ndn::net::NetworkMonitorImpl::emit_onInterfaceRemoved ( const TArgs &...  args)
inlineprotected

Definition at line 161 of file network-monitor.hpp.

◆ emit_onNetworkStateChanged()

template<typename ... TArgs>
void ndn::net::NetworkMonitorImpl::emit_onNetworkStateChanged ( const TArgs &...  args)
inlineprotected

Definition at line 162 of file network-monitor.hpp.

◆ getCapabilities()

virtual uint32_t ndn::net::NetworkMonitorImpl::getCapabilities ( ) const
pure virtual

◆ getNetworkInterface()

virtual shared_ptr<const NetworkInterface> ndn::net::NetworkMonitorImpl::getNetworkInterface ( const std::string &  ) const
pure virtual

◆ listNetworkInterfaces()

virtual std::vector<shared_ptr<const NetworkInterface> > ndn::net::NetworkMonitorImpl::listNetworkInterfaces ( ) const
pure virtual

◆ makeNetworkInterface()

shared_ptr< NetworkInterface > ndn::net::NetworkMonitorImpl::makeNetworkInterface ( )
staticprotected

Definition at line 91 of file network-monitor.cpp.

Member Data Documentation

◆ onEnumerationCompleted

util::Signal<NetworkMonitorImpl> ndn::net::NetworkMonitorImpl::onEnumerationCompleted

Definition at line 153 of file network-monitor.hpp.

◆ onInterfaceAdded

util::Signal<NetworkMonitorImpl, shared_ptr<const NetworkInterface> > ndn::net::NetworkMonitorImpl::onInterfaceAdded

Definition at line 154 of file network-monitor.hpp.

◆ onInterfaceRemoved

util::Signal<NetworkMonitorImpl, shared_ptr<const NetworkInterface> > ndn::net::NetworkMonitorImpl::onInterfaceRemoved

Definition at line 155 of file network-monitor.hpp.

◆ onNetworkStateChanged

util::Signal<NetworkMonitorImpl> ndn::net::NetworkMonitorImpl::onNetworkStateChanged

Definition at line 156 of file network-monitor.hpp.