Implementation detail of a Boost.Asio-based stream-oriented transport. More...
#include <ndn-cxx/transport/detail/stream-transport-impl.hpp>
Inheritance diagram for ndn::detail::StreamTransportImpl< BaseTransport, Protocol >:
Collaboration diagram for ndn::detail::StreamTransportImpl< BaseTransport, Protocol >:Public Member Functions | |
| StreamTransportImpl (BaseTransport &transport, boost::asio::io_context &ioCtx) | |
| void | close () |
| void | connect (const typename Protocol::endpoint &endpoint) |
| void | pause () |
| void | resume () |
| void | send (const Block &block) |
Protected Types | |
| using | TransmissionQueue = std::queue< Block, std::list< Block > > |
Protected Member Functions | |
| void | asyncReceive () |
| void | asyncWrite () |
| void | connectHandler (const boost::system::error_code &error) |
Protected Attributes | |
| boost::asio::steady_timer | m_connectTimer |
| Protocol::endpoint | m_endpoint |
| std::array< uint8_t, MAX_NDN_PACKET_SIZE > | m_rxBuffer |
| size_t | m_rxBufferSize = 0 |
| Protocol::socket | m_socket |
| TransmissionQueue | m_transmissionQueue |
| BaseTransport & | m_transport |
Implementation detail of a Boost.Asio-based stream-oriented transport.
| BaseTransport | a subclass of Transport |
| Protocol | a Boost.Asio stream-oriented protocol, e.g., boost::asio::ip::tcp or boost::asio::local::stream_protocol |
Definition at line 44 of file stream-transport-impl.hpp.
|
protected |
Definition at line 47 of file stream-transport-impl.hpp.
|
inline |
Definition at line 50 of file stream-transport-impl.hpp.
|
inlineprotected |
Definition at line 185 of file stream-transport-impl.hpp.
|
inlineprotected |
Definition at line 156 of file stream-transport-impl.hpp.
|
inline |
Definition at line 86 of file stream-transport-impl.hpp.
|
inline |
Definition at line 58 of file stream-transport-impl.hpp.
|
inlineprotected |
Definition at line 133 of file stream-transport-impl.hpp.
|
inline |
Definition at line 99 of file stream-transport-impl.hpp.
|
inline |
Definition at line 108 of file stream-transport-impl.hpp.
|
inline |
Definition at line 118 of file stream-transport-impl.hpp.
|
protected |
Definition at line 233 of file stream-transport-impl.hpp.
|
protected |
Definition at line 231 of file stream-transport-impl.hpp.
|
protected |
Definition at line 236 of file stream-transport-impl.hpp.
|
protected |
Definition at line 235 of file stream-transport-impl.hpp.
|
protected |
Definition at line 232 of file stream-transport-impl.hpp.
|
protected |
Definition at line 234 of file stream-transport-impl.hpp.
|
protected |
Definition at line 230 of file stream-transport-impl.hpp.