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 CtorParams, which in turn passes it to ProtocolFactory base class constructor. Parameters are passed as a struct rather than individually, so that a future change in list of parameters does not require updates to subclass constructors.

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

Member Data Documentation

◆ addFace

FaceCreatedCallback nfd::face::ProtocolFactoryCtorParams::addFace

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

◆ netmon

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

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