algorithm.hpp File Reference

This file contains common algorithms used by forwarding strategies. More...

+ Include dependency graph for algorithm.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 nfd
 Copyright (c) 2014-2015, Regents of the University of California, Arizona Board of Regents, Colorado State University, University Pierre & Marie Curie, Sorbonne University, Washington University in St.
 
 nfd::fw
 
 nfd::scope_prefix
 contain name prefixes that affect namespace-based scope control
 

Enumerations

enum  nfd::fw::DuplicateNonceWhere {
  nfd::fw::DUPLICATE_NONCE_NONE = 0,
  nfd::fw::DUPLICATE_NONCE_IN_SAME = (1 << 0),
  nfd::fw::DUPLICATE_NONCE_IN_OTHER = (1 << 1),
  nfd::fw::DUPLICATE_NONCE_OUT_SAME = (1 << 2),
  nfd::fw::DUPLICATE_NONCE_OUT_OTHER = (1 << 3)
}
 indicates where duplicate Nonces are found More...
 

Functions

bool nfd::fw::canForwardToLegacy (const pit::Entry &pitEntry, const Face &face)
 decide whether Interest can be forwarded to face More...
 
int nfd::fw::findDuplicateNonce (const pit::Entry &pitEntry, uint32_t nonce, const Face &face)
 determine whether pitEntry has duplicate Nonce nonce More...
 
time::steady_clock::TimePoint nfd::fw::getLastOutgoing (const pit::Entry &pitEntry)
 
bool nfd::fw::hasPendingOutRecords (const pit::Entry &pitEntry)
 determine whether pitEntry has any pending out-records More...
 
bool nfd::fw::wouldViolateScope (const Face &inFace, const Interest &interest, const Face &outFace)
 determine whether forwarding the Interest in pitEntry to outFace would violate scope More...
 

Variables

const Name nfd::scope_prefix::LOCALHOP
 ndn:/localhop More...
 
const Name nfd::scope_prefix::LOCALHOST
 ndn:/localhost More...
 

Detailed Description

This file contains common algorithms used by forwarding strategies.

Definition in file algorithm.hpp.