22 #ifndef NDN_TRANSPORT_TCP_TRANSPORT_HPP 23 #define NDN_TRANSPORT_TCP_TRANSPORT_HPP 26 #include "../util/config-file.hpp" 38 template<
typename BaseTransport,
typename Protocol>
39 class StreamTransportImpl;
41 template<
typename BaseTransport,
typename Protocol>
42 class StreamTransportWithResolverImpl;
50 TcpTransport(
const std::string& host,
const std::string& port =
"6363");
55 connect(boost::asio::io_service& ioService,
const ReceiveCallback& receiveCallback)
override;
67 send(
const Block& wire)
override;
70 send(
const Block& header,
const Block& payload)
override;
75 static shared_ptr<TcpTransport>
76 create(
const std::string& uri);
79 static std::pair<std::string, std::string>
80 getSocketHostAndPortFromUri(
const std::string& uri);
89 shared_ptr<Impl> m_impl;
94 #endif // NDN_TRANSPORT_TCP_TRANSPORT_HPP 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.
a transport using TCP socket
implementation detail of a Boost.Asio-based stream-oriented transport
implementation detail of a Boost.Asio-based stream-oriented transport with resolver support ...
provides TLV-block delivery service
function< void(const Block &wire)> ReceiveCallback