nfd::face::ProtocolFactoryCtorParams Struct Reference

Parameters to ProtocolFactory constructor. More...

#include <daemon/face/protocol-factory.hpp>

+ Collaboration diagram for nfd::face::ProtocolFactoryCtorParams:

Public Attributes

FaceCreatedCallback addFace
 
shared_ptr< ndn::net::NetworkMonitor > netmon
 

Detailed Description

Parameters to ProtocolFactory constructor.

Every ProtocolFactory subclass is expected to have a constructor that accepts ProtocolFactory::CtorParams, which in turn passes it to ProtocolFactory base class constructor. Parameters are passed as a struct rather than individually, so that any future changes in the list of parameters will not require updates to all subclass constructors.

Definition at line 47 of file protocol-factory.hpp.

Member Data Documentation

◆ addFace

FaceCreatedCallback nfd::face::ProtocolFactoryCtorParams::addFace

Definition at line 49 of file protocol-factory.hpp.

◆ netmon

shared_ptr<ndn::net::NetworkMonitor> nfd::face::ProtocolFactoryCtorParams::netmon

Definition at line 50 of file protocol-factory.hpp.