generalization of a network interface More...
#include <face.hpp>
Public Member Functions | |
Face (unique_ptr< LinkService > service, unique_ptr< Transport > transport) | |
LinkService * | getLinkService () const |
Transport * | getTransport () const |
void | sendInterest (const Interest &interest) |
sends Interest on Face More... | |
void | sendData (const Data &data) |
sends Data on Face More... | |
void | sendNack (const lp::Nack &nack) |
sends Nack on Face More... | |
FaceId | getId () const |
void | setId (FaceId id) |
sets face ID More... | |
void | setMetric (uint64_t metric) |
uint64_t | getMetric () const |
FaceUri | getLocalUri () const |
FaceUri | getRemoteUri () const |
ndn::nfd::FaceScope | getScope () const |
ndn::nfd::FacePersistency | getPersistency () const |
void | setPersistency (ndn::nfd::FacePersistency persistency) |
changes face persistency setting More... | |
ndn::nfd::LinkType | getLinkType () const |
FaceState | getState () const |
time::steady_clock::TimePoint | getExpirationTime () const |
void | close () |
request the face to be closed More... | |
const FaceCounters & | getCounters () const |
Public Attributes | |
signal::Signal< LinkService, Interest > & | afterReceiveInterest |
signals on Interest received More... | |
signal::Signal< LinkService, Data > & | afterReceiveData |
signals on Data received More... | |
signal::Signal< LinkService, lp::Nack > & | afterReceiveNack |
signals on Nack received More... | |
signal::Signal< Transport, FaceState, FaceState > & | afterStateChange |
signals after face state changed More... | |
generalization of a network interface
A face generalizes a network interface. It provides best-effort network-layer packet delivery services on a physical interface, an overlay tunnel, or a link to a local application.
A face combines two parts: LinkService and Transport. Transport is the lower part, which provides best-effort TLV block deliveries. LinkService is the upper part, which translates between network-layer packets and TLV blocks, and may provide additional services such as fragmentation and reassembly.
nfd::face::Face::Face | ( | unique_ptr< LinkService > | service, |
unique_ptr< Transport > | transport | ||
) |
|
inline |
Definition at line 199 of file face.hpp.
Referenced by nfd::FaceManager::setConfigFile().
|
inline |
|
inline |
sends Interest on Face
Definition at line 211 of file face.hpp.
Referenced by nfd::Forwarder::startProcessNack().
|
inline |
sends Data on Face
Definition at line 217 of file face.hpp.
Referenced by nfd::Forwarder::startProcessNack().
|
inline |
sends Nack on Face
Definition at line 223 of file face.hpp.
Referenced by nfd::Forwarder::startProcessNack().
|
inline |
Definition at line 229 of file face.hpp.
Referenced by nfd::fw::NccStrategy::afterReceiveInterest(), nfd::fw::asf::AsfStrategy::afterReceiveInterest(), nfd::fw::AccessStrategy::afterReceiveInterest(), nfd::fw::BestRouteStrategy2::afterReceiveInterest(), nfd::fw::asf::AsfStrategy::afterReceiveNack(), nfd::fw::BestRouteStrategy2::afterReceiveNack(), nfd::fw::Strategy::afterReceiveNack(), nfd::fw::asf::AsfStrategy::beforeSatisfyInterest(), nfd::fw::AccessStrategy::beforeSatisfyInterest(), nfd::fw::Strategy::beforeSatisfyInterest(), nfd::fw::asf::NamespaceInfo::extendFaceInfoLifetime(), nfd::fw::asf::NamespaceInfo::getFaceInfo(), nfd::fw::asf::ProbingModule::getFaceToProbe(), nfd::fw::asf::NamespaceInfo::getOrCreateFaceInfo(), nfd::fw::asf::getValueForSorting(), nfd::face::operator<<(), nfd::fw::asf::FaceInfo::recordRtt(), nfd::FaceManager::setConfigFile(), nfd::Forwarder::startProcessInterest(), and nfd::Forwarder::startProcessNack().
|
inline |
|
inline |
Definition at line 253 of file face.hpp.
Referenced by nfd::face::operator<<(), and nfd::FaceManager::setConfigFile().
|
inline |
Definition at line 259 of file face.hpp.
Referenced by nfd::face::operator<<(), and nfd::FaceManager::setConfigFile().
|
inline |
Definition at line 265 of file face.hpp.
Referenced by nfd::fw::AdmitLocalUnsolicitedDataPolicy::decide(), nfd::fw::AdmitNetworkUnsolicitedDataPolicy::decide(), nfd::FaceManager::setConfigFile(), nfd::Forwarder::startProcessNack(), nfd::fw::violatesScope(), and nfd::fw::wouldViolateScope().
|
inline |
Definition at line 271 of file face.hpp.
Referenced by nfd::FaceManager::setConfigFile().
|
inline |
|
inline |
Definition at line 283 of file face.hpp.
Referenced by nfd::FaceManager::setConfigFile(), and nfd::Forwarder::startProcessNack().
|
inline |
|
inline |
time::steady_clock::TimePoint::max() | the face has an indefinite lifetime |
Definition at line 295 of file face.hpp.
Referenced by nfd::FaceManager::setConfigFile().
|
inline |
request the face to be closed
This operation is effective only if face is in UP or DOWN state, otherwise it has no effect. The face changes state to CLOSING, and performs cleanup procedure. The state will be changed to CLOSED when cleanup is complete, which may happen synchronously or asynchronously.
Definition at line 301 of file face.hpp.
Referenced by nfd::FaceManager::setConfigFile().
|
inline |
Definition at line 307 of file face.hpp.
Referenced by nfd::FaceManager::setConfigFile().
signal::Signal<LinkService, Interest>& nfd::face::Face::afterReceiveInterest |
signals on Interest received
Definition at line 100 of file face.hpp.
Referenced by nfd::Forwarder::Forwarder().
signal::Signal<LinkService, Data>& nfd::face::Face::afterReceiveData |
signals on Data received
Definition at line 104 of file face.hpp.
Referenced by nfd::Forwarder::Forwarder().
signal::Signal<LinkService, lp::Nack>& nfd::face::Face::afterReceiveNack |
signals on Nack received
Definition at line 108 of file face.hpp.
Referenced by nfd::Forwarder::Forwarder().
signal::Signal<Transport, FaceState, FaceState>& nfd::face::Face::afterStateChange |
signals after face state changed
Definition at line 166 of file face.hpp.
Referenced by nfd::connectFaceClosedSignal(), and nfd::FaceManager::setConfigFile().