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

Public Member Functions

void receive (Block block) const
 
void send (const Block &block) final
 Send a TLV block through the transport. More...
 
void close () final
 Close the connection. More...
 
void pause () final
 Pause the transport, canceling all pending operations. More...
 
void resume () final
 Resume the transport. More...
 
- Public Member Functions inherited from ndn::Transport
virtual ~Transport ()=default
 
virtual void connect (ReceiveCallback receiveCallback)
 Asynchronously open the connection. More...
 
bool isConnected () const noexcept
 Return whether the transport is connected. More...
 
bool isReceiving () const noexcept
 

Public Attributes

Signal< Transport, BlockonSendBlock
 

Additional Inherited Members

- Public Types inherited from ndn::Transport
using ReceiveCallback = std::function< void(const Block &wire)>
 
using ErrorCallback = std::function< void()>
 
- Protected Attributes inherited from ndn::Transport
ReceiveCallback m_receiveCallback
 
bool m_isConnected = false
 
bool m_isReceiving = false
 

Detailed Description

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

Member Function Documentation

◆ receive()

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

◆ send()

void ndn::util::DummyClientFace::Transport::send ( const Block block)
inlinefinalvirtual

Send a TLV block through the transport.

Implements ndn::Transport.

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

References onSendBlock.

◆ close()

void ndn::util::DummyClientFace::Transport::close ( )
inlinefinalvirtual

Close the connection.

Implements ndn::Transport.

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

◆ pause()

void ndn::util::DummyClientFace::Transport::pause ( )
inlinefinalvirtual

Pause the transport, canceling all pending operations.

Postcondition
the receive callback will not be invoked
Note
This operation has no effect if the transport has been paused, or when the connection is being established.

Implements ndn::Transport.

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

◆ resume()

void ndn::util::DummyClientFace::Transport::resume ( )
inlinefinalvirtual

Resume the transport.

Postcondition
the receive callback will be invoked
Note
This operation has no effect if the transport is not paused, or when the connection is being established.

Implements ndn::Transport.

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

Member Data Documentation

◆ onSendBlock

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

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

Referenced by send().


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