nfd::rib::HostToGatewayReadvertisePolicy Class Reference

a policy to readvertise routes registered by local applications into remote gateway More...

#include <rib/readvertise/host-to-gateway-readvertise-policy.hpp>

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

Public Member Functions

 HostToGatewayReadvertisePolicy (const ndn::KeyChain &keyChain, const ConfigSection &section)
 
time::milliseconds getRefreshInterval () const override
 
optional< ReadvertiseActionhandleNewRoute (const RibRouteRef &ribRoute) const override
 decide whether to readvertise a route, and what prefix to readvertise More...
 

Detailed Description

a policy to readvertise routes registered by local applications into remote gateway

Definition at line 39 of file host-to-gateway-readvertise-policy.hpp.

Constructor & Destructor Documentation

nfd::rib::HostToGatewayReadvertisePolicy::HostToGatewayReadvertisePolicy ( const ndn::KeyChain &  keyChain,
const ConfigSection section 
)

Definition at line 39 of file host-to-gateway-readvertise-policy.cpp.

Member Function Documentation

time::milliseconds nfd::rib::HostToGatewayReadvertisePolicy::getRefreshInterval ( ) const
overridevirtual
Returns
how often readvertisements made by this policy should be refreshed.

Implements nfd::rib::ReadvertisePolicy.

Definition at line 85 of file host-to-gateway-readvertise-policy.cpp.

optional< ReadvertiseAction > nfd::rib::HostToGatewayReadvertisePolicy::handleNewRoute ( const RibRouteRef ribRoute) const
overridevirtual

decide whether to readvertise a route, and what prefix to readvertise

Implements nfd::rib::ReadvertisePolicy.

Definition at line 48 of file host-to-gateway-readvertise-policy.cpp.