22 #ifndef NDN_TRANSPORT_UNIX_TRANSPORT_HPP 23 #define NDN_TRANSPORT_UNIX_TRANSPORT_HPP 26 #include "../util/config-file.hpp" 28 #include <boost/asio/local/stream_protocol.hpp> 32 template<
typename BaseTransport,
typename Protocol>
33 class StreamTransportImpl;
46 connect(boost::asio::io_service& ioService,
67 static shared_ptr<UnixTransport>
68 create(
const std::string& uri);
72 getSocketNameFromUri(
const std::string& uri);
75 std::string m_unixSocket;
79 shared_ptr<Impl> m_impl;
84 #endif // NDN_TRANSPORT_UNIX_TRANSPORT_HPP a transport using Unix stream socket
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.
void send(const Block &wire) override
send a TLV block through the transport
implementation detail of a Boost.Asio-based stream-oriented transport
static shared_ptr< UnixTransport > create(const std::string &uri)
Create transport with parameters defined in URI.
void pause() override
pause the transport
void resume() override
resume the transport
~UnixTransport() override
void close() override
Close the connection.
provides TLV-block delivery service
void connect(boost::asio::io_service &ioService, const ReceiveCallback &receiveCallback) override
asynchronously open the connection
UnixTransport(const std::string &unixSocket)
function< void(const Block &wire)> ReceiveCallback