generalization of a network interface More...
#include <daemon/face/face.hpp>
Public Member Functions | |
Face (unique_ptr< LinkService > service, unique_ptr< Transport > transport) | |
void | close () |
request the face to be closed More... | |
const FaceCounters & | getCounters () const |
time::steady_clock::TimePoint | getExpirationTime () const |
FaceId | getId () const |
LinkService * | getLinkService () const |
ndn::nfd::LinkType | getLinkType () const |
FaceUri | getLocalUri () const |
ndn::nfd::FacePersistency | getPersistency () const |
FaceUri | getRemoteUri () const |
ndn::nfd::FaceScope | getScope () const |
FaceState | getState () const |
Transport * | getTransport () const |
void | sendData (const Data &data) |
sends Data on Face More... | |
void | sendInterest (const Interest &interest) |
sends Interest on Face More... | |
void | sendNack (const lp::Nack &nack) |
sends Nack on Face More... | |
void | setId (FaceId id) |
sets face ID More... | |
void | setPersistency (ndn::nfd::FacePersistency persistency) |
changes face persistency setting More... | |
Public Attributes | |
signal::Signal< LinkService, Data > & | afterReceiveData |
signals on Data received More... | |
signal::Signal< LinkService, Interest > & | afterReceiveInterest |
signals on Interest 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 |
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.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
signal::Signal<LinkService, Data>& nfd::face::Face::afterReceiveData |
signal::Signal<LinkService, Interest>& nfd::face::Face::afterReceiveInterest |
signal::Signal<LinkService, lp::Nack>& nfd::face::Face::afterReceiveNack |