NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.0: NDN, CCN, CCNx, content centric networks
API Documentation
ndn::StreamTransportWithResolverImpl< BaseTransport, Protocol > Class Template Reference

#include <stream-transport.hpp>

Inheritance diagram for ndn::StreamTransportWithResolverImpl< BaseTransport, Protocol >:
Collaboration diagram for ndn::StreamTransportWithResolverImpl< BaseTransport, Protocol >:

Public Types

typedef StreamTransportWithResolverImpl< BaseTransport, Protocol > Impl
 
- Public Types inherited from ndn::StreamTransportImpl< BaseTransport, Protocol >
typedef StreamTransportImpl< BaseTransport, Protocol > Impl
 
typedef std::list< BlockBlockSequence
 
typedef std::list< BlockSequenceTransmissionQueue
 

Public Member Functions

 StreamTransportWithResolverImpl (BaseTransport &transport, boost::asio::io_service &ioService)
 
void resolveHandler (const boost::system::error_code &error, typename Protocol::resolver::iterator endpoint, const shared_ptr< typename Protocol::resolver > &)
 
void connect (const typename Protocol::resolver::query &query)
 
- Public Member Functions inherited from ndn::StreamTransportImpl< BaseTransport, Protocol >
 StreamTransportImpl (BaseTransport &transport, boost::asio::io_service &ioService)
 
void connectHandler (const boost::system::error_code &error)
 
void connectTimeoutHandler (const boost::system::error_code &error)
 
void connect (const typename Protocol::endpoint &endpoint)
 
void close ()
 
void pause ()
 
void resume ()
 
void send (const Block &wire)
 
void send (const Block &header, const Block &payload)
 
void handleAsyncWrite (const boost::system::error_code &error, TransmissionQueue::iterator queueItem)
 
bool processAll (uint8_t *buffer, size_t &offset, size_t nBytesAvailable)
 
void handleAsyncReceive (const boost::system::error_code &error, std::size_t nBytesRecvd)
 

Additional Inherited Members

- Protected Attributes inherited from ndn::StreamTransportImpl< BaseTransport, Protocol >
BaseTransport & m_transport
 
Protocol::socket m_socket
 
uint8_t m_inputBuffer [MAX_NDN_PACKET_SIZE]
 
size_t m_inputBufferSize
 
TransmissionQueue m_transmissionQueue
 
bool m_connectionInProgress
 
boost::asio::deadline_timer m_connectTimer
 

Detailed Description

template<class BaseTransport, class Protocol>
class ndn::StreamTransportWithResolverImpl< BaseTransport, Protocol >

Definition at line 288 of file stream-transport.hpp.

Member Typedef Documentation

template<class BaseTransport , class Protocol >
typedef StreamTransportWithResolverImpl<BaseTransport,Protocol> ndn::StreamTransportWithResolverImpl< BaseTransport, Protocol >::Impl

Definition at line 291 of file stream-transport.hpp.

Constructor & Destructor Documentation

template<class BaseTransport , class Protocol >
ndn::StreamTransportWithResolverImpl< BaseTransport, Protocol >::StreamTransportWithResolverImpl ( BaseTransport &  transport,
boost::asio::io_service &  ioService 
)
inline

Definition at line 293 of file stream-transport.hpp.

Member Function Documentation

template<class BaseTransport , class Protocol >
void ndn::StreamTransportWithResolverImpl< BaseTransport, Protocol >::resolveHandler ( const boost::system::error_code &  error,
typename Protocol::resolver::iterator  endpoint,
const shared_ptr< typename Protocol::resolver > &   
)
inline

The documentation for this class was generated from the following file: