generalization of a network interface More...
#include <daemon/face/face.hpp>
Inheritance diagram for nfd::face::Face:
Collaboration diagram for nfd::face::Face:Public Member Functions | |
| Face (unique_ptr< LinkService > service, unique_ptr< Transport > transport) | |
| void | close () |
| Request that the face be closed. More... | |
| weak_ptr< Channel > | getChannel () const |
| Get channel on which face was created (unicast) or the associated channel (multicast) 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 |
| ssize_t | getMtu () const |
| Returns face effective MTU. More... | |
| ndn::nfd::FacePersistency | getPersistency () const |
| FaceUri | getRemoteUri () const |
| ndn::nfd::FaceScope | getScope () const |
| FaceState | getState () const |
| Transport * | getTransport () const |
| void | sendData (const Data &data) |
| send Data More... | |
| void | sendInterest (const Interest &interest) |
| send Interest More... | |
| void | sendNack (const lp::Nack &nack) |
| send Nack More... | |
| void | setChannel (weak_ptr< Channel > channel) |
| Set channel on which face was created (unicast) or the associated channel (multicast) 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, EndpointId > & | afterReceiveData |
| signals on Data received More... | |
| signal::Signal< LinkService, Interest, EndpointId > & | afterReceiveInterest |
| signals on Interest received More... | |
| signal::Signal< LinkService, lp::Nack, EndpointId > & | afterReceiveNack |
| signals on Nack received More... | |
| signal::Signal< Transport, FaceState, FaceState > & | afterStateChange |
| signals after face state changed More... | |
| signal::Signal< LinkService, Interest > & | onDroppedInterest |
| signals on Interest dropped by reliability system for exceeding allowed number of retx 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 that the face be closed.
This operation is effective only if face is in the UP or DOWN state; otherwise, it has no effect. The face will change state to CLOSING, and then perform a cleanup procedure. When the cleanup is complete, the state will be changed to CLOSED, which may happen synchronously or asynchronously.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| signal::Signal<LinkService, Data, EndpointId>& nfd::face::Face::afterReceiveData |
| signal::Signal<LinkService, Interest, EndpointId>& nfd::face::Face::afterReceiveInterest |
| signal::Signal<LinkService, lp::Nack, EndpointId>& nfd::face::Face::afterReceiveNack |
| signal::Signal<LinkService, Interest>& nfd::face::Face::onDroppedInterest |