Namespaces | |
detail | |
Classes | |
class | IfAddrs |
class | NetworkAddress |
Stores one IP address supported by a network interface. More... | |
class | NetworkInterface |
Represents one network interface attached to the host. More... | |
class | NetworkMonitor |
Network interface monitor. More... | |
class | NetworkMonitorImpl |
class | NetworkMonitorImplNoop |
class | NetworkMonitorImplOsx |
class | NetworkMonitorImplRtnl |
class | NetworkMonitorImplStub |
class | NetworkMonitorStub |
a stub NetworkMonitor for unit testing More... | |
Enumerations | |
enum | AddressFamily { AddressFamily::UNSPECIFIED, AddressFamily::V4, AddressFamily::V6 } |
enum | AddressScope { AddressScope::NOWHERE, AddressScope::HOST, AddressScope::LINK, AddressScope::GLOBAL } |
enum | InterfaceType { InterfaceType::UNKNOWN, InterfaceType::LOOPBACK, InterfaceType::ETHERNET } |
Indicates the hardware type of a network interface. More... | |
enum | InterfaceState { InterfaceState::UNKNOWN, InterfaceState::DOWN, InterfaceState::NO_CARRIER, InterfaceState::DORMANT, InterfaceState::RUNNING } |
Indicates the state of a network interface. More... | |
Functions | |
static std::string | convertToStdString (CFStringRef cfStr) |
template<typename AddressBytes > | |
static uint8_t | computePrefixLength (const AddressBytes &mask) |
static const char * | nlmsgTypeToString (uint16_t type) |
static InterfaceType | ifiTypeToInterfaceType (uint16_t type) |
static AddressFamily | ifaFamilyToAddressFamily (uint8_t family) |
static AddressScope | ifaScopeToAddressScope (uint8_t scope) |
std::ostream & | operator<< (std::ostream &os, AddressScope scope) |
std::ostream & | operator<< (std::ostream &os, const NetworkAddress &addr) |
std::ostream & | operator<< (std::ostream &os, InterfaceType type) |
std::ostream & | operator<< (std::ostream &os, InterfaceState state) |
static void | printFlag (std::ostream &os, uint32_t &flags, uint32_t flagVal, const char *flagStr) |
std::ostream & | operator<< (std::ostream &os, const NetworkInterface &netif) |
Variables | |
ndn | NetworkMonitor |
|
strong |
Enumerator | |
---|---|
UNSPECIFIED | |
V4 | |
V6 |
Definition at line 33 of file network-address.hpp.
|
strong |
Enumerator | |
---|---|
NOWHERE | |
HOST | |
LINK | |
GLOBAL |
Definition at line 39 of file network-address.hpp.
|
strong |
Indicates the hardware type of a network interface.
Enumerator | |
---|---|
UNKNOWN | |
LOOPBACK | |
ETHERNET |
Definition at line 37 of file network-interface.hpp.
|
strong |
Indicates the state of a network interface.
Definition at line 49 of file network-interface.hpp.
|
static |
Definition at line 208 of file network-monitor-impl-osx.cpp.
References DOWN, emitSignal, ndn::util::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::onInterfaceAdded, RUNNING, and UNKNOWN.
Referenced by computePrefixLength().
|
static |
Definition at line 306 of file network-monitor-impl-osx.cpp.
References ndn::net::NetworkInterface::addNetworkAddress(), ndn::ethernet::ADDR_LEN, ndn::Name::at(), ndn::net::NetworkInterface::canBroadcast(), convertToStdString(), emitSignal, ETHERNET, ndn::net::IfAddrs::get(), ndn::ethernet::getBroadcastAddress(), ndn::net::NetworkInterface::getEthernetAddress(), ndn::net::NetworkInterface::getName(), ndn::net::NetworkInterface::getNetworkAddresses(), ndn::net::NetworkInterface::getState(), GLOBAL, HOST, LINK, LOOPBACK, ndn::net::NetworkMonitorImpl::makeNetworkInterface(), NDN_LOG_DEBUG, NDN_LOG_TRACE, ndn::net::NetworkMonitorImpl::onInterfaceRemoved, ndn::net::NetworkInterface::removeNetworkAddress(), ndn::net::NetworkInterface::setEthernetAddress(), ndn::net::NetworkInterface::setEthernetBroadcastAddress(), ndn::net::NetworkInterface::setFlags(), ndn::net::NetworkInterface::setIndex(), ndn::net::NetworkInterface::setMtu(), ndn::net::NetworkInterface::setState(), ndn::net::NetworkInterface::setType(), ndn::name::Component::toUri(), UNKNOWN, UNSPECIFIED, V4, and V6.
|
static |
Definition at line 155 of file network-monitor-impl-rtnl.cpp.
References NLMSG_STRINGIFY, and RTM_STRINGIFY.
Referenced by ifaScopeToAddressScope().
|
static |
Definition at line 178 of file network-monitor-impl-rtnl.cpp.
References ETHERNET, LOOPBACK, and UNKNOWN.
Referenced by ifaScopeToAddressScope().
|
static |
Definition at line 191 of file network-monitor-impl-rtnl.cpp.
References UNSPECIFIED, V4, and V6.
Referenced by ifaScopeToAddressScope().
|
static |
Definition at line 204 of file network-monitor-impl-rtnl.cpp.
References ndn::time::abs(), ndn::ethernet::ADDR_LEN, DORMANT, DOWN, emitSignal, ndn::net::NetworkAddress::getFamily(), ndn::net::NetworkInterface::getFlags(), GLOBAL, HOST, ifaFamilyToAddressFamily(), ifiTypeToInterfaceType(), LINK, ndn::net::NetworkMonitorImpl::makeNetworkInterface(), NDN_LOG_DEBUG, NDN_LOG_ERROR, NDN_LOG_TRACE, nlmsgTypeToString(), NO_CARRIER, NOWHERE, ndn::net::NetworkMonitorImpl::onEnumerationCompleted, ndn::net::NetworkMonitorImpl::onInterfaceAdded, ndn::net::NetworkMonitorImpl::onInterfaceRemoved, ndn::net::NetworkMonitorImpl::onNetworkStateChanged, websocketpp::transport::error::operation_aborted, RUNNING, ndn::net::NetworkInterface::setState(), websocketpp::transport::asio::socket::error::socket, UNKNOWN, and UNSPECIFIED.
std::ostream & ndn::net::operator<< | ( | std::ostream & | os, |
AddressScope | scope | ||
) |
std::ostream & ndn::net::operator<< | ( | std::ostream & | os, |
const NetworkAddress & | addr | ||
) |
Definition at line 61 of file network-address.cpp.
References ndn::net::NetworkAddress::getIp(), and ndn::net::NetworkAddress::getPrefixLength().
std::ostream & ndn::net::operator<< | ( | std::ostream & | os, |
InterfaceType | type | ||
) |
Definition at line 129 of file network-interface.cpp.
References websocketpp::session::fail::status::UNKNOWN.
std::ostream & ndn::net::operator<< | ( | std::ostream & | os, |
InterfaceState | state | ||
) |
Definition at line 143 of file network-interface.cpp.
References websocketpp::session::fail::status::UNKNOWN.
|
static |
Definition at line 161 of file network-interface.cpp.
std::ostream & ndn::net::operator<< | ( | std::ostream & | os, |
const NetworkInterface & | netif | ||
) |
Definition at line 170 of file network-interface.cpp.
References ndn::net::NetworkInterface::canBroadcast(), DORMANT, ndn::net::NetworkInterface::getEthernetAddress(), ndn::net::NetworkInterface::getEthernetBroadcastAddress(), ndn::net::NetworkInterface::getFlags(), ndn::net::NetworkInterface::getIndex(), ndn::net::NetworkInterface::getMtu(), ndn::net::NetworkInterface::getName(), ndn::net::NetworkInterface::getNetworkAddresses(), ndn::net::NetworkInterface::getState(), ndn::net::NetworkInterface::getType(), LOOPBACK, PRINT_IFF, and RUNNING.
Definition at line 74 of file network-monitor-impl-osx.cpp.
Referenced by ndn::net::NetworkMonitor::Error::Error().