ndn::net Namespace Reference

Classes

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  NetworkMonitorStub
 A dummy NetworkMonitor for unit testing. More...
 

Enumerations

enum class  AddressFamily {
  UNSPECIFIED ,
  V4 ,
  V6
}
 
enum class  AddressScope {
  NOWHERE ,
  HOST ,
  LINK ,
  GLOBAL
}
 
enum class  InterfaceState {
  UNKNOWN ,
  DOWN ,
  NO_CARRIER ,
  DORMANT ,
  RUNNING
}
 Indicates the state of a network interface. More...
 
enum class  InterfaceType {
  UNKNOWN ,
  LOOPBACK ,
  ETHERNET
}
 Indicates the hardware type of a network interface. More...
 

Functions

std::ostream & operator<< (std::ostream &os, AddressScope scope)
 
std::ostream & operator<< (std::ostream &os, const NetworkAddress &addr)
 
std::ostream & operator<< (std::ostream &os, const NetworkInterface &netif)
 
std::ostream & operator<< (std::ostream &os, InterfaceState state)
 
std::ostream & operator<< (std::ostream &os, InterfaceType type)
 

Enumeration Type Documentation

◆ AddressFamily

Enumerator
UNSPECIFIED 
V4 
V6 

Definition at line 34 of file network-address.hpp.

◆ AddressScope

Enumerator
NOWHERE 
HOST 
LINK 
GLOBAL 

Definition at line 40 of file network-address.hpp.

◆ InterfaceState

Indicates the state of a network interface.

Enumerator
UNKNOWN 

interface is in an unknown state

DOWN 

interface is administratively down

NO_CARRIER 

interface is administratively up but has no carrier

DORMANT 

interface has a carrier but it cannot send or receive normal user traffic yet

RUNNING 

interface can be used to send and receive packets

Definition at line 51 of file network-interface.hpp.

◆ InterfaceType

Indicates the hardware type of a network interface.

Enumerator
UNKNOWN 
LOOPBACK 
ETHERNET 

Definition at line 38 of file network-interface.hpp.

Function Documentation

◆ operator<<() [1/5]

std::ostream & ndn::net::operator<< ( std::ostream &  os,
AddressScope  scope 
)

Definition at line 32 of file network-address.cpp.

◆ operator<<() [2/5]

std::ostream & ndn::net::operator<< ( std::ostream &  os,
const NetworkAddress addr 
)

Definition at line 75 of file network-address.cpp.

◆ operator<<() [3/5]

std::ostream & ndn::net::operator<< ( std::ostream &  os,
const NetworkInterface netif 
)

Definition at line 161 of file network-interface.cpp.

◆ operator<<() [4/5]

std::ostream & ndn::net::operator<< ( std::ostream &  os,
InterfaceState  state 
)

Definition at line 134 of file network-interface.cpp.

◆ operator<<() [5/5]

std::ostream & ndn::net::operator<< ( std::ostream &  os,
InterfaceType  type 
)

Definition at line 120 of file network-interface.cpp.