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,
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-2016 Regents of the University of California.
Copyright (c) 2013-2016 Regents of the University of California.
#define NDN_CXX_PUBLIC_WITH_TESTS_ELSE_PRIVATE
Class representing a wire element of NDN-TLV 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