26 #ifndef NFD_DAEMON_FACE_FACE_COMMON_HPP
27 #define NFD_DAEMON_FACE_FACE_COMMON_HPP
33 #include <ndn-cxx/encoding/nfd-constants.hpp>
34 #include <ndn-cxx/net/face-uri.hpp>
36 #include <boost/logic/tribool.hpp>
78 using EndpointId = std::variant<std::monostate, ethernet::Address, udp::Endpoint>;
88 ndn::nfd::FacePersistency
persistency = ndn::nfd::FACE_PERSISTENCY_PERSISTENT;
91 std::optional<ssize_t>
mtu;
124 using ::ndn::FaceUri;
140 #define NFD_LOG_FACE(level, msg) NFD_LOG_##level( \
141 ::nfd::face::FaceLogHelper< \
142 std::remove_cv_t<std::remove_reference_t<decltype(*this)>> \
148 #define NFD_LOG_FACE_TRACE(msg) NFD_LOG_FACE(TRACE, msg)
151 #define NFD_LOG_FACE_DEBUG(msg) NFD_LOG_FACE(DEBUG, msg)
154 #define NFD_LOG_FACE_INFO(msg) NFD_LOG_FACE(INFO, msg)
157 #define NFD_LOG_FACE_WARN(msg) NFD_LOG_FACE(WARN, msg)
160 #define NFD_LOG_FACE_ERROR(msg) NFD_LOG_FACE(ERROR, msg)
For internal use by FaceLogging macros.
FaceLogHelper(const T &obj1) noexcept
constexpr FaceId FACEID_NULL
Identifies the NullFace that drops every packet.
constexpr FaceId INVALID_FACEID
Indicates an invalid FaceId.
constexpr FaceId FACEID_CONTENT_STORE
Identifies a packet comes from the ContentStore.
std::variant< std::monostate, ethernet::Address, udp::Endpoint > EndpointId
Identifies a remote endpoint on the link.
constexpr FaceId FACEID_INTERNAL_FACE
Identifies the InternalFace used in management.
constexpr FaceId FACEID_RESERVED_MAX
Upper bound of reserved FaceIds.
constexpr ssize_t MIN_MTU
Minimum MTU that may be set.
uint64_t FaceId
Identifies a face.
Parameters used to set Transport properties or LinkService options on a newly created face.
std::optional< uint64_t > defaultCongestionThreshold
std::optional< time::nanoseconds > baseCongestionMarkingInterval
std::optional< ssize_t > mtu
ndn::nfd::FacePersistency persistency
boost::logic::tribool wantCongestionMarking