NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: NDN, CCN, CCNx, content centric networks
API Documentation
nfd::face::NetdevBound Class Reference

manages netdev-bound faces More...

#include <netdev-bound.hpp>

Inheritance diagram for nfd::face::NetdevBound:
Collaboration diagram for nfd::face::NetdevBound:

Classes

class  RuleParseError
 

Public Types

using Key = std::pair< FaceUri, std::string >
 

Public Member Functions

 NetdevBound (const ProtocolFactoryCtorParams &params, const FaceSystem &faceSystem)
 
void processConfig (OptionalConfigSection configSection, FaceSystem::ConfigContext &context)
 process face_system.netdev_bound config section More...
 
Rule parseRule (int index, const ConfigSection &confRule) const
 

Public Attributes

NFD_PUBLIC_WITH_TESTS_ELSE_PRIVATE __pad0__: struct Rule { std::vector<FaceUri> remotes
 
NetworkInterfacePredicate netifPredicate
 
NFD_PUBLIC_WITH_TESTS_ELSE_PRIVATE __pad1__: const FaceSystem& m_faceSystem
 
FaceCreatedCallback m_addFace
 
shared_ptr< ndn::net::NetworkMonitorm_netmon
 
std::vector< Rulem_rules
 
std::map< Key, shared_ptr< Face > > m_faces
 

Detailed Description

manages netdev-bound faces

Definition at line 38 of file netdev-bound.hpp.

Member Typedef Documentation

◆ Key

using nfd::face::NetdevBound::Key = std::pair<FaceUri, std::string>

Definition at line 81 of file netdev-bound.hpp.

Constructor & Destructor Documentation

◆ NetdevBound()

nfd::face::NetdevBound::NetdevBound ( const ProtocolFactoryCtorParams params,
const FaceSystem faceSystem 
)

Definition at line 35 of file netdev-bound.cpp.

Member Function Documentation

◆ processConfig()

void nfd::face::NetdevBound::processConfig ( OptionalConfigSection  configSection,
FaceSystem::ConfigContext context 
)

process face_system.netdev_bound config section

Definition at line 43 of file netdev-bound.cpp.

References ndn::FaceUri::getScheme(), nfd::face::FaceSystem::ConfigContext::isDryRun, m_faces, m_rules, NDN_THROW, NFD_LOG_DEBUG, parseRule(), Rule, and ndn::FaceUri::toString().

◆ parseRule()

NetdevBound::Rule nfd::face::NetdevBound::parseRule ( int  index,
const ConfigSection confRule 
) const

Definition at line 91 of file netdev-bound.cpp.

References NDN_THROW, NDN_THROW_NESTED, and Rule.

Referenced by processConfig().

Member Data Documentation

◆ __pad0__

NFD_PUBLIC_WITH_TESTS_ELSE_PRIVATE nfd::face::NetdevBound::__pad0__

Definition at line 67 of file netdev-bound.hpp.

◆ netifPredicate

NetworkInterfacePredicate nfd::face::NetdevBound::netifPredicate

Definition at line 68 of file netdev-bound.hpp.

◆ __pad1__

NFD_PUBLIC_WITH_TESTS_ELSE_PRIVATE nfd::face::NetdevBound::__pad1__

Definition at line 75 of file netdev-bound.hpp.

◆ m_addFace

FaceCreatedCallback nfd::face::NetdevBound::m_addFace

Definition at line 76 of file netdev-bound.hpp.

◆ m_netmon

shared_ptr<ndn::net::NetworkMonitor> nfd::face::NetdevBound::m_netmon

Definition at line 77 of file netdev-bound.hpp.

◆ m_rules

std::vector<Rule> nfd::face::NetdevBound::m_rules

Definition at line 79 of file netdev-bound.hpp.

Referenced by processConfig().

◆ m_faces

std::map<Key, shared_ptr<Face> > nfd::face::NetdevBound::m_faces

Definition at line 82 of file netdev-bound.hpp.

Referenced by processConfig().


The documentation for this class was generated from the following files: