nfd::rib::NfdRibReadvertiseDestination Class Reference

A readvertise destination using NFD RIB management protocol. More...

#include <daemon/rib/readvertise/nfd-rib-readvertise-destination.hpp>

+ Inheritance diagram for nfd::rib::NfdRibReadvertiseDestination:
+ Collaboration diagram for nfd::rib::NfdRibReadvertiseDestination:

Public Member Functions

 NfdRibReadvertiseDestination (ndn::nfd::Controller &controller, Rib &rib, const ndn::nfd::CommandOptions &options=ndn::nfd::CommandOptions(), const ndn::nfd::ControlParameters &parameters=ndn::nfd::ControlParameters().setOrigin(ndn::nfd::ROUTE_ORIGIN_CLIENT))
 
void advertise (const ReadvertisedRoute &rr, std::function< void()> successCb, std::function< void(const std::string &)> failureCb) override
 Add a name prefix into NFD RIB. More...
 
bool isAvailable () const
 
void withdraw (const ReadvertisedRoute &rr, std::function< void()> successCb, std::function< void(const std::string &)> failureCb) override
 Remove a name prefix from NFD RIB. More...
 

Public Attributes

signal::Signal< ReadvertiseDestination, bool > afterAvailabilityChange
 Signals when the destination becomes available or unavailable. More...
 

Protected Member Functions

ndn::nfd::CommandOptions getCommandOptions () const
 
ndn::nfd::ControlParameters getControlParameters () const
 
void setAvailability (bool isAvailable)
 

Detailed Description

A readvertise destination using NFD RIB management protocol.

Definition at line 40 of file nfd-rib-readvertise-destination.hpp.

Constructor & Destructor Documentation

◆ NfdRibReadvertiseDestination()

nfd::rib::NfdRibReadvertiseDestination::NfdRibReadvertiseDestination ( ndn::nfd::Controller &  controller,
Rib rib,
const ndn::nfd::CommandOptions &  options = ndn::nfd::CommandOptions(),
const ndn::nfd::ControlParameters &  parameters = ndn::nfd::ControlParameters().setOrigin(ndn::nfd::ROUTE_ORIGIN_CLIENT) 
)

Definition at line 38 of file nfd-rib-readvertise-destination.cpp.

Member Function Documentation

◆ advertise()

void nfd::rib::NfdRibReadvertiseDestination::advertise ( const ReadvertisedRoute rr,
std::function< void()>  successCb,
std::function< void(const std::string &)>  failureCb 
)
overridevirtual

Add a name prefix into NFD RIB.

Implements nfd::rib::ReadvertiseDestination.

Definition at line 60 of file nfd-rib-readvertise-destination.cpp.

◆ getCommandOptions()

ndn::nfd::CommandOptions nfd::rib::NfdRibReadvertiseDestination::getCommandOptions ( ) const
inlineprotected

Definition at line 71 of file nfd-rib-readvertise-destination.hpp.

◆ getControlParameters()

ndn::nfd::ControlParameters nfd::rib::NfdRibReadvertiseDestination::getControlParameters ( ) const
inlineprotected

Definition at line 65 of file nfd-rib-readvertise-destination.hpp.

◆ isAvailable()

bool nfd::rib::ReadvertiseDestination::isAvailable ( ) const
inlineinherited

Definition at line 52 of file readvertise-destination.hpp.

◆ setAvailability()

void nfd::rib::ReadvertiseDestination::setAvailability ( bool  isAvailable)
protectedinherited

Definition at line 34 of file readvertise-destination.cpp.

◆ withdraw()

void nfd::rib::NfdRibReadvertiseDestination::withdraw ( const ReadvertisedRoute rr,
std::function< void()>  successCb,
std::function< void(const std::string &)>  failureCb 
)
overridevirtual

Remove a name prefix from NFD RIB.

Implements nfd::rib::ReadvertiseDestination.

Definition at line 74 of file nfd-rib-readvertise-destination.cpp.

Member Data Documentation

◆ afterAvailabilityChange

signal::Signal<ReadvertiseDestination, bool> nfd::rib::ReadvertiseDestination::afterAvailabilityChange
inherited

Signals when the destination becomes available or unavailable.

Definition at line 64 of file readvertise-destination.hpp.