32 "UnixStreamTransport");
38 std::is_same<std::remove_cv<protocol::socket::native_handle_type>::type,
int>::value,
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);
55 if (newPersistency != ndn::nfd::FACE_PERSISTENCY_ON_DEMAND) {
56 BOOST_THROW_EXCEPTION(
57 std::invalid_argument(
"UnixStreamTransport supports only FACE_PERSISTENCY_ON_DEMAND"));
void setLocalUri(const FaceUri &uri)
void setScope(ndn::nfd::FaceScope scope)
const ssize_t MTU_UNLIMITED
indicates the transport has no limit on payload size
boost::asio::local::stream_protocol protocol
void setPersistency(ndn::nfd::FacePersistency persistency)
changes face persistency setting
Implements Transport for stream-based protocols.
Copyright (c) 2014-2015, Regents of the University of California, Arizona Board of Regents...
#define NFD_LOG_FACE_INFO(msg)
Log a message at INFO level.
#define NFD_LOG_INCLASS_TEMPLATE_SPECIALIZATION_DEFINE(cls, specialization, name)
virtual void beforeChangePersistency(ndn::nfd::FacePersistency newPersistency) final
invoked before persistency is changed
void setLinkType(ndn::nfd::LinkType linkType)
void setRemoteUri(const FaceUri &uri)
UnixStreamTransport(protocol::socket &&socket)
protocol::socket m_socket