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

entry point of the face system More...

#include <face-system.hpp>

Inheritance diagram for nfd::face::FaceSystem:
Collaboration diagram for nfd::face::FaceSystem:

Classes

class  ConfigContext
 context for processing a config section in ProtocolFactory More...
 

Public Member Functions

 FaceSystem (FaceTable &faceTable, shared_ptr< ndn::net::NetworkMonitor > netmon)
 
 ~FaceSystem ()
 
std::set< const ProtocolFactory * > listProtocolFactories () const
 
ProtocolFactorygetFactoryById (const std::string &id)
 
ProtocolFactorygetFactoryByScheme (const std::string &scheme)
 
FaceTablegetFaceTable ()
 
void setConfigFile (ConfigFile &configFile)
 register handler for face_system section of NFD configuration file More...
 

Detailed Description

entry point of the face system

NFD's face system is organized as a FaceSystem-ProtocolFactory-Channel-Face hierarchy. FaceSystem class is the entry point of NFD's face system and owns ProtocolFactory objects.

Definition at line 50 of file face-system.hpp.

Constructor & Destructor Documentation

nfd::face::FaceSystem::FaceSystem ( FaceTable faceTable,
shared_ptr< ndn::net::NetworkMonitor netmon 
)
nfd::face::FaceSystem::~FaceSystem ( )
default

Referenced by FaceSystem().

Member Function Documentation

std::set< const ProtocolFactory * > nfd::face::FaceSystem::listProtocolFactories ( ) const
Returns
ProtocolFactory objects owned by the FaceSystem

Definition at line 57 of file face-system.cpp.

ProtocolFactory * nfd::face::FaceSystem::getFactoryById ( const std::string &  id)
Returns
ProtocolFactory for the specified registered factory id or nullptr if not found

Definition at line 67 of file face-system.cpp.

References websocketpp::http::status_code::found.

ProtocolFactory * nfd::face::FaceSystem::getFactoryByScheme ( const std::string &  scheme)
Returns
ProtocolFactory for the specified FaceUri scheme or nullptr if not found

Definition at line 74 of file face-system.cpp.

References websocketpp::http::status_code::found.

FaceTable& nfd::face::FaceSystem::getFaceTable ( )
inline

Definition at line 73 of file face-system.hpp.

References setConfigFile().

void nfd::face::FaceSystem::setConfigFile ( ConfigFile configFile)

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