36 std::is_same_v<std::remove_cv_t<protocol::socket::native_handle_type>,
int>,
37 "The native handle type for UnixStreamTransport sockets must be 'int'"
42 this->
setScope(ndn::nfd::FACE_SCOPE_LOCAL);
44 this->
setLinkType(ndn::nfd::LINK_TYPE_POINT_TO_POINT);
Implements Transport for stream-based protocols.
protocol::socket m_socket
void setScope(ndn::nfd::FaceScope scope) noexcept
void setPersistency(ndn::nfd::FacePersistency newPersistency)
Changes the persistency setting of the transport.
void setMtu(ssize_t mtu) noexcept
void setLocalUri(const FaceUri &uri) noexcept
void setLinkType(ndn::nfd::LinkType linkType) noexcept
void setRemoteUri(const FaceUri &uri) noexcept
UnixStreamTransport(protocol::socket &&socket)
#define NFD_LOG_FACE_DEBUG(msg)
Log a message at DEBUG level.
#define NFD_LOG_MEMBER_INIT_SPECIALIZED(cls, name)
constexpr ssize_t MTU_UNLIMITED
Indicates that the transport has no limit on payload size.