|
| | Face (unique_ptr< LinkService > service, unique_ptr< Transport > transport) |
| |
| void | close () |
| | Request that the face be closed.
|
| |
| weak_ptr< Channel > | getChannel () const noexcept |
| | Get channel on which face was created (unicast) or the associated channel (multicast).
|
| |
| const FaceCounters & | getCounters () const noexcept |
| |
| FaceCounters & | getCounters () noexcept |
| |
| time::steady_clock::time_point | getExpirationTime () const noexcept |
| | Returns the expiration time of the face.
|
| |
| FaceId | getId () const noexcept |
| | Returns the face ID.
|
| |
| LinkService * | getLinkService () const noexcept |
| |
| ndn::nfd::LinkType | getLinkType () const noexcept |
| | Returns the link type of the face (point-to-point, multi-access, ...).
|
| |
| FaceUri | getLocalUri () const noexcept |
| | Returns a FaceUri representing the local endpoint.
|
| |
| ssize_t | getMtu () const |
| | Returns the effective MTU of the face.
|
| |
| ndn::nfd::FacePersistency | getPersistency () const noexcept |
| | Returns the current persistency setting of the face.
|
| |
| FaceUri | getRemoteUri () const noexcept |
| | Returns a FaceUri representing the remote endpoint.
|
| |
| ndn::nfd::FaceScope | getScope () const noexcept |
| | Returns whether the face is local or non-local for scope control purposes.
|
| |
| FaceState | getState () const noexcept |
| | Returns the face state.
|
| |
| Transport * | getTransport () const noexcept |
| |
| void | sendData (const Data &data) |
| | Send Data.
|
| |
| void | sendInterest (const Interest &interest) |
| | Send Interest.
|
| |
| void | sendNack (const lp::Nack &nack) |
| | Send Nack.
|
| |
| void | setChannel (weak_ptr< Channel > channel) noexcept |
| | Set channel on which face was created (unicast) or the associated channel (multicast).
|
| |
| void | setId (FaceId id) noexcept |
| | Sets the face ID.
|
| |
| void | setPersistency (ndn::nfd::FacePersistency persistency) |
| | Changes the face persistency setting.
|
| |
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.
Definition at line 117 of file face.hpp.
| void nfd::face::Face::close |
( |
| ) |
|
|
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.
- Warning
- The face must not be deallocated until its state changes to CLOSED.
Definition at line 145 of file face.hpp.