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 >:
 Inheritance diagram for ndn::detail::StreamTransportImpl< BaseTransport, Protocol >: Collaboration diagram for ndn::detail::StreamTransportImpl< BaseTransport, Protocol >:
 Collaboration diagram for ndn::detail::StreamTransportImpl< BaseTransport, Protocol >:| Public Types | |
| using | BlockSequence = std::list< Block > | 
| using | Impl = StreamTransportImpl< BaseTransport, Protocol > | 
| using | TransmissionQueue = std::list< BlockSequence > | 
| Public Member Functions | |
| StreamTransportImpl (BaseTransport &transport, boost::asio::io_service &ioService) | |
| void | close () | 
| void | connect (const typename Protocol::endpoint &endpoint) | 
| void | pause () | 
| void | resume () | 
| void | send (const Block &wire) | 
| void | send (const Block &header, const Block &payload) | 
| Protected Member Functions | |
| void | asyncReceive () | 
| void | asyncWrite () | 
| void | connectHandler (const boost::system::error_code &error) | 
| void | connectTimeoutHandler (const boost::system::error_code &error) | 
| void | handleAsyncReceive (const boost::system::error_code &error, std::size_t nBytesRecvd) | 
| void | handleAsyncWrite (const boost::system::error_code &error, TransmissionQueue::iterator queueItem) | 
| bool | processAllReceived (uint8_t *buffer, size_t &offset, size_t nBytesAvailable) | 
| void | send (BlockSequence &&sequence) | 
| Protected Attributes | |
| boost::asio::steady_timer | m_connectTimer | 
| uint8_t | m_inputBuffer [MAX_NDN_PACKET_SIZE] | 
| size_t | m_inputBufferSize = 0 | 
| bool | m_isConnecting = false | 
| 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 41 of file stream-transport-impl.hpp.
| using ndn::detail::StreamTransportImpl< BaseTransport, Protocol >::BlockSequence = std::list<Block> | 
Definition at line 45 of file stream-transport-impl.hpp.
| using ndn::detail::StreamTransportImpl< BaseTransport, Protocol >::Impl = StreamTransportImpl<BaseTransport, Protocol> | 
Definition at line 44 of file stream-transport-impl.hpp.
| using ndn::detail::StreamTransportImpl< BaseTransport, Protocol >::TransmissionQueue = std::list<BlockSequence> | 
Definition at line 46 of file stream-transport-impl.hpp.
| 
 | inline | 
Definition at line 48 of file stream-transport-impl.hpp.
| 
 | inlineprotected | 
Definition at line 210 of file stream-transport-impl.hpp.
| 
 | inlineprotected | 
Definition at line 178 of file stream-transport-impl.hpp.
| 
 | inline | 
Definition at line 77 of file stream-transport-impl.hpp.
| 
 | inline | 
Definition at line 56 of file stream-transport-impl.hpp.
| 
 | inlineprotected | 
Definition at line 135 of file stream-transport-impl.hpp.
| 
 | inlineprotected | 
Definition at line 155 of file stream-transport-impl.hpp.
| 
 | inlineprotected | 
Definition at line 218 of file stream-transport-impl.hpp.
| 
 | inlineprotected | 
Definition at line 187 of file stream-transport-impl.hpp.
| 
 | inline | 
Definition at line 92 of file stream-transport-impl.hpp.
| 
 | inlineprotected | 
Definition at line 253 of file stream-transport-impl.hpp.
| 
 | inline | 
Definition at line 104 of file stream-transport-impl.hpp.
| 
 | inline | 
Definition at line 117 of file stream-transport-impl.hpp.
| 
 | inline | 
Definition at line 125 of file stream-transport-impl.hpp.
| 
 | inlineprotected | 
Definition at line 165 of file stream-transport-impl.hpp.
| 
 | protected | 
Definition at line 276 of file stream-transport-impl.hpp.
| 
 | protected | 
Definition at line 272 of file stream-transport-impl.hpp.
| 
 | protected | 
Definition at line 273 of file stream-transport-impl.hpp.
| 
 | protected | 
Definition at line 277 of file stream-transport-impl.hpp.
| 
 | protected | 
Definition at line 271 of file stream-transport-impl.hpp.
| 
 | protected | 
Definition at line 275 of file stream-transport-impl.hpp.
| 
 | protected | 
Definition at line 269 of file stream-transport-impl.hpp.