NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.0: NDN, CCN, CCNx, content centric networks
API Documentation
ndn::util::DummyClientFace::Transport Class Reference
Inheritance diagram for ndn::util::DummyClientFace::Transport:
Collaboration diagram for ndn::util::DummyClientFace::Transport:

Public Member Functions

void receive (Block block)
 
virtual void close ()
 Close the connection. More...
 
virtual void pause ()
 
virtual void resume ()
 
virtual void send (const Block &wire)
 Send block of data from wire through the transport. More...
 
virtual void send (const Block &header, const Block &payload)
 Alternative version of sending data, applying scatter/gather I/O concept. More...
 
boost::asio::io_service & getIoService ()
 
- Public Member Functions inherited from ndn::Transport
 Transport ()
 
virtual ~Transport ()
 
virtual void connect (boost::asio::io_service &io_service, const ReceiveCallback &receiveCallback)
 Connect transport. More...
 
bool isConnected ()
 
bool isExpectingData ()
 

Public Attributes

Signal< Transport, BlockonSendBlock
 

Additional Inherited Members

- Public Types inherited from ndn::Transport
typedef function< void(const Block &wire)> ReceiveCallback
 
typedef function< void()> ErrorCallback
 
- Protected Member Functions inherited from ndn::Transport
void receive (const Block &wire)
 
- Protected Attributes inherited from ndn::Transport
boost::asio::io_service * m_ioService
 
bool m_isConnected
 
bool m_isExpectingData
 
ReceiveCallback m_receiveCallback
 

Detailed Description

Definition at line 34 of file dummy-client-face.cpp.

Member Function Documentation

§ receive()

void ndn::util::DummyClientFace::Transport::receive ( Block  block)
inline

§ close()

virtual void ndn::util::DummyClientFace::Transport::close ( )
inlinevirtual

Close the connection.

Implements ndn::Transport.

Definition at line 47 of file dummy-client-face.cpp.

§ pause()

virtual void ndn::util::DummyClientFace::Transport::pause ( )
inlinevirtual

Implements ndn::Transport.

Definition at line 52 of file dummy-client-face.cpp.

§ resume()

virtual void ndn::util::DummyClientFace::Transport::resume ( )
inlinevirtual

Implements ndn::Transport.

Definition at line 57 of file dummy-client-face.cpp.

§ send() [1/2]

virtual void ndn::util::DummyClientFace::Transport::send ( const Block wire)
inlinevirtual

Send block of data from wire through the transport.

Parameters
wireA block of data to send

Implements ndn::Transport.

Definition at line 62 of file dummy-client-face.cpp.

References onSendBlock.

Referenced by send().

§ send() [2/2]

virtual void ndn::util::DummyClientFace::Transport::send ( const Block header,
const Block payload 
)
inlinevirtual

Alternative version of sending data, applying scatter/gather I/O concept.

Two non-consecutive memory blocks will be send out together, e.g., as part of the same message in datagram-oriented transports.

Implements ndn::Transport.

Definition at line 68 of file dummy-client-face.cpp.

References ndn::encoding::Encoder::appendByteArray(), send(), ndn::Block::size(), and ndn::Block::wire().

§ getIoService()

boost::asio::io_service& ndn::util::DummyClientFace::Transport::getIoService ( )
inline

Definition at line 78 of file dummy-client-face.cpp.

References ndn::Transport::m_ioService.

Member Data Documentation

§ onSendBlock

Signal<Transport, Block> ndn::util::DummyClientFace::Transport::onSendBlock

Definition at line 84 of file dummy-client-face.cpp.

Referenced by send().


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