7 #ifndef NDN_TRANSPORT_TCP_TRANSPORT_HPP
8 #define NDN_TRANSPORT_TCP_TRANSPORT_HPP
10 #include "../common.hpp"
14 namespace boost {
namespace asio {
namespace ip {
class tcp; } } }
19 template<
class T,
class U>
class StreamTransportImpl;
20 template<
class T,
class U>
class StreamTransportWithResolverImpl;
25 TcpTransport(
const std::string& host,
const std::string& port =
"6363");
30 connect(boost::asio::io_service& ioService,
55 shared_ptr< Impl > m_impl;
60 #endif // NDN_TRANSPORT_TCP_TRANSPORT_HPP
ptr_lib::function< void(const Block &wire)> ReceiveCallback
Class representing wire element of the NDN packet.
virtual void connect(boost::asio::io_service &ioService, const ReceiveCallback &receiveCallback)
Connect transport.
virtual void send(const Block &wire)
Set data to the host.
virtual void close()
Close the connection.
TcpTransport(const std::string &host, const std::string &port="6363")