#include <internal-face.hpp>


Classes | |
| class | Error |
| InternalFace-related error. More... | |
Public Member Functions | |
| InternalFace () | |
| CommandValidator & | getValidator () |
| virtual | ~InternalFace () |
| virtual void | sendInterest (const Interest &interest) |
| send an Interest More... | |
| virtual void | sendData (const Data &data) |
| send a Data More... | |
| virtual void | close () |
| Close the face. More... | |
| virtual void | setInterestFilter (const Name &filter, OnInterest onInterest) |
| virtual void | put (const Data &data) |
Public Member Functions inherited from nfd::Face | |
| Face (const FaceUri &remoteUri, const FaceUri &localUri, bool isLocal=false, bool isMultiAccess=false) | |
| virtual | ~Face () |
| FaceId | getId () const |
| const std::string & | getDescription () const |
| Get the description. More... | |
| void | setDescription (const std::string &description) |
| Set the face description. More... | |
| void | setMetric (uint64_t metric) |
| uint64_t | getMetric () const |
| bool | isLocal () const |
| Get whether face is connected to a local app. More... | |
| ndn::nfd::FacePersistency | getPersistency () const |
| Get the persistency setting. More... | |
| bool | isMultiAccess () const |
| Get whether packets sent by this face may reach multiple peers. More... | |
| virtual bool | isUp () const |
| Get whether underlying communication is up. More... | |
| const FaceCounters & | getCounters () const |
| const FaceUri & | getRemoteUri () const |
| const FaceUri & | getLocalUri () const |
| template<typename FaceTraits > | |
| void | copyStatusTo (FaceTraits &traits) const |
| virtual ndn::nfd::FaceStatus | getFaceStatus () const |
Public Member Functions inherited from nfd::AppFace | |
| virtual | ~AppFace () |
Additional Inherited Members | |
Public Attributes inherited from nfd::Face | |
| signal::Signal< Face, Interest > | onReceiveInterest |
| fires when an Interest is received More... | |
| signal::Signal< Face, Data > | onReceiveData |
| fires when a Data is received More... | |
| signal::Signal< Face, Interest > | onSendInterest |
| fires when an Interest is sent out More... | |
| signal::Signal< Face, Data > | onSendData |
| fires when a Data is sent out More... | |
| signal::Signal< Face, std::string > | onFail |
| fires when face disconnects or fails to perform properly More... | |
Protected Member Functions inherited from nfd::Face | |
| void | setPersistency (ndn::nfd::FacePersistency persistency) |
| bool | decodeAndDispatchInput (const Block &element) |
| void | fail (const std::string &reason) |
| fail the face and raise onFail event if it's UP; otherwise do nothing More... | |
| FaceCounters & | getMutableCounters () |
Definition at line 36 of file internal-face.hpp.
| nfd::InternalFace::InternalFace | ( | ) |
Definition at line 34 of file internal-face.cpp.
Referenced by nfd::InternalFace::Error::Error().
|
virtual |
Definition at line 148 of file internal-face.cpp.
Referenced by nfd::InternalFace::Error::Error().
|
inline |
Definition at line 90 of file internal-face.hpp.
Referenced by nfd::InternalFace::Error::Error().
|
virtual |
send an Interest
Implements nfd::Face.
Definition at line 40 of file internal-face.cpp.
References emitSignal, NFD_LOG_DEBUG, nfd::Face::onSendInterest, and nfd::scheduler::schedule().
Referenced by nfd::InternalFace::Error::Error().
|
virtual |
send a Data
Implements nfd::Face.
Definition at line 123 of file internal-face.cpp.
References emitSignal, and nfd::Face::onSendData.
Referenced by nfd::InternalFace::Error::Error().
|
virtual |
Close the face.
This terminates all communication on the face and cause onFail() method event to be invoked
Implements nfd::Face.
Definition at line 129 of file internal-face.cpp.
Referenced by nfd::InternalFace::Error::Error().
|
virtual |
Implements nfd::AppFace.
Definition at line 135 of file internal-face.cpp.
References NFD_LOG_INFO.
Referenced by nfd::InternalFace::Error::Error().
|
virtual |
Implements nfd::AppFace.
Definition at line 143 of file internal-face.cpp.
References emitSignal, and nfd::Face::onReceiveData.
Referenced by nfd::InternalFace::Error::Error().