NLSR 24.08-21-g73a96d2c
Loading...
Searching...
No Matches
nlsr::SyncLogicHandler Class Reference

NLSR-to-sync interaction point. More...

#include <sync-logic-handler.hpp>

+ Collaboration diagram for nlsr::SyncLogicHandler:

Classes

class  Error
 

Public Member Functions

 SyncLogicHandler (ndn::Face &face, ndn::KeyChain &keyChain, const SyncLogicOptions &opts)
 
void publishRoutingUpdate (Lsa::Type type, uint64_t seqNo)
 Instruct ChronoSync to publish an update.
 

Public Attributes

OnSyncUpdate onSyncUpdate
 

Detailed Description

NLSR-to-sync interaction point.

This class serves as the abstraction for the syncing portion of NLSR and its components.

Definition at line 56 of file sync-logic-handler.hpp.

Constructor & Destructor Documentation

◆ SyncLogicHandler()

nlsr::SyncLogicHandler::SyncLogicHandler ( ndn::Face &  face,
ndn::KeyChain &  keyChain,
const SyncLogicOptions opts 
)

Definition at line 33 of file sync-logic-handler.cpp.

Member Function Documentation

◆ publishRoutingUpdate()

void nlsr::SyncLogicHandler::publishRoutingUpdate ( Lsa::Type  type,
uint64_t  seqNo 
)

Instruct ChronoSync to publish an update.

This function instructs sync to push an update into the network, based on whatever the state of the sequencing manager is when this is called. Since each ChronoSync instance maintains its own PIT, doing this satisfies those interests so that other routers know a sync update is available.

See also
publishSyncUpdate

Definition at line 75 of file sync-logic-handler.cpp.

Member Data Documentation

◆ onSyncUpdate

OnSyncUpdate nlsr::SyncLogicHandler::onSyncUpdate

Definition at line 91 of file sync-logic-handler.hpp.