implementation detail of a Boost.Asio-based stream-oriented transport More...
#include <stream-transport-impl.hpp>
Public Types | |
typedef std::list< Block > | BlockSequence |
typedef StreamTransportImpl< BaseTransport, Protocol > | Impl |
typedef std::list< BlockSequence > | TransmissionQueue |
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::deadline_timer | m_connectTimer |
uint8_t | m_inputBuffer [MAX_NDN_PACKET_SIZE] |
size_t | m_inputBufferSize |
bool | m_isConnecting |
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, including boost::asio::ip::tcp and boost::asio::local::stream_protocol |
Definition at line 38 of file stream-transport-impl.hpp.
typedef std::list<Block> ndn::StreamTransportImpl< BaseTransport, Protocol >::BlockSequence |
Definition at line 42 of file stream-transport-impl.hpp.
typedef StreamTransportImpl<BaseTransport,Protocol> ndn::StreamTransportImpl< BaseTransport, Protocol >::Impl |
Definition at line 41 of file stream-transport-impl.hpp.
typedef std::list<BlockSequence> ndn::StreamTransportImpl< BaseTransport, Protocol >::TransmissionQueue |
Definition at line 43 of file stream-transport-impl.hpp.
|
inline |
Definition at line 45 of file stream-transport-impl.hpp.
|
inlineprotected |
Definition at line 205 of file stream-transport-impl.hpp.
|
inlineprotected |
Definition at line 173 of file stream-transport-impl.hpp.
|
inline |
Definition at line 71 of file stream-transport-impl.hpp.
|
inline |
Definition at line 55 of file stream-transport-impl.hpp.
|
inlineprotected |
Definition at line 129 of file stream-transport-impl.hpp.
|
inlineprotected |
Definition at line 150 of file stream-transport-impl.hpp.
|
inlineprotected |
Definition at line 213 of file stream-transport-impl.hpp.
|
inlineprotected |
Definition at line 181 of file stream-transport-impl.hpp.
|
inline |
Definition at line 86 of file stream-transport-impl.hpp.
|
inlineprotected |
Definition at line 251 of file stream-transport-impl.hpp.
|
inline |
Definition at line 98 of file stream-transport-impl.hpp.
|
inline |
Definition at line 111 of file stream-transport-impl.hpp.
|
inline |
Definition at line 119 of file stream-transport-impl.hpp.
|
inlineprotected |
Definition at line 160 of file stream-transport-impl.hpp.
|
protected |
Definition at line 276 of file stream-transport-impl.hpp.
|
protected |
Definition at line 270 of file stream-transport-impl.hpp.
|
protected |
Definition at line 271 of file stream-transport-impl.hpp.
|
protected |
Definition at line 274 of file stream-transport-impl.hpp.
|
protected |
Definition at line 269 of file stream-transport-impl.hpp.
|
protected |
Definition at line 273 of file stream-transport-impl.hpp.
|
protected |
Definition at line 267 of file stream-transport-impl.hpp.