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,
ReceiveCallback receiveCallback)
override;
62 send(
const Block& wire)
override;
65 send(
const Block& header,
const Block& payload)
override;
70 static shared_ptr<UnixTransport>
71 create(
const std::string& uri);
75 getSocketNameFromUri(
const std::string& uri);
78 std::string m_unixSocket;
82 shared_ptr<Impl> m_impl;
87 #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.
std::function< void(const Block &wire)> ReceiveCallback