30 namespace local = boost::asio::local;
38 std::is_same_v<std::remove_cv_t<local::stream_protocol::socket::native_handle_type>,
int>,
39 "The native handle type for UnixStreamTransport sockets must be 'int'"
44 this->
setScope(ndn::nfd::FACE_SCOPE_LOCAL);
46 this->
setLinkType(ndn::nfd::LINK_TYPE_POINT_TO_POINT);
Implements a 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(boost::asio::local::stream_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.