7 #ifndef NDN_UDPTRANSPORT_HPP
8 #define NDN_UDPTRANSPORT_HPP
10 #include "../common.hpp"
12 #include "../util/config-file.hpp"
15 namespace boost {
namespace asio {
namespace local {
class stream_protocol; } } }
20 template<
class T,
class U>
21 class StreamTransportImpl;
39 connect(boost::asio::io_service& ioService,
67 std::string m_unixSocket;
71 ptr_lib::shared_ptr< Impl > m_impl;
ptr_lib::function< void(const Block &wire)> ReceiveCallback
static std::string getDefaultSocketName(const ConfigFile &config)
Determine the default NFD unix socket.
virtual void close()
Close the connection.
Class representing wire element of the NDN packet.
virtual void send(const Block &wire)
Set data to the host.
UnixTransport(const std::string &unixSocket)
Create Unix transport based on the socket specified in a well-known configuration file or fallback to...
virtual void connect(boost::asio::io_service &ioService, const ReceiveCallback &receiveCallback)
Connect transport.