22 #ifndef NDN_TRANSPORT_UNIX_TRANSPORT_HPP 23 #define NDN_TRANSPORT_UNIX_TRANSPORT_HPP 26 #include "../util/config-file.hpp" 31 class stream_protocol;
38 template<
typename BaseTransport,
typename Protocol>
39 class StreamTransportImpl;
52 connect(boost::asio::io_service& ioService,
65 send(
const Block& wire)
override;
68 send(
const Block& header,
const Block& payload)
override;
73 static shared_ptr<UnixTransport>
74 create(
const std::string& uri);
78 getSocketNameFromUri(
const std::string& uri);
81 std::string m_unixSocket;
85 shared_ptr<Impl> m_impl;
90 #endif // NDN_TRANSPORT_UNIX_TRANSPORT_HPP a transport using Unix stream socket
Copyright (c) 2013-2017 Regents of the University of California.
Copyright (c) 2013-2017 Regents of the University of California.
#define NDN_CXX_PUBLIC_WITH_TESTS_ELSE_PRIVATE
Represents a TLV element of NDN packet format.
implementation detail of a Boost.Asio-based stream-oriented transport
provides TLV-block delivery service
function< void(const Block &wire)> ReceiveCallback