22 #ifndef NDN_TRANSPORT_UNIX_TRANSPORT_HPP 23 #define NDN_TRANSPORT_UNIX_TRANSPORT_HPP 28 #include <boost/asio/local/stream_protocol.hpp> 34 template<
typename BaseTransport,
typename Protocol>
35 class StreamTransportImpl;
50 connect(boost::asio::io_service& ioService,
63 send(
const Block& wire)
override;
66 send(
const Block& header,
const Block& payload)
override;
71 static shared_ptr<UnixTransport>
72 create(
const std::string& uri);
76 getSocketNameFromUri(
const std::string& uri);
79 std::string m_unixSocket;
83 shared_ptr<Impl> m_impl;
88 #endif // NDN_TRANSPORT_UNIX_TRANSPORT_HPP a transport using Unix stream socket
Represents a TLV element of NDN packet format.
Implementation detail of a Boost.Asio-based stream-oriented transport.
#define NDN_CXX_PUBLIC_WITH_TESTS_ELSE_PRIVATE
provides TLV-block delivery service
function< void(const Block &wire)> ReceiveCallback