nfd::face::InternalClientTransport Class Referencefinal

Implements a client-side transport that can be paired with an InternalForwarderTransport. More...

#include <daemon/face/internal-transport.hpp>

+ Inheritance diagram for nfd::face::InternalClientTransport:
+ Collaboration diagram for nfd::face::InternalClientTransport:

Public Member Functions

 ~InternalClientTransport () final
 
void close () final
 
void connectToForwarder (InternalForwarderTransport *forwarder)
 Connect to a forwarder-side transport. More...
 
void pause () final
 
void receivePacket (const Block &packet) final
 
void resume () final
 
void send (const Block &wire) final
 
void send (const Block &header, const Block &payload) final
 

Detailed Description

Implements a client-side transport that can be paired with an InternalForwarderTransport.

Definition at line 84 of file internal-transport.hpp.

Constructor & Destructor Documentation

nfd::face::InternalClientTransport::~InternalClientTransport ( )
final

Definition at line 74 of file internal-transport.cpp.

Member Function Documentation

void nfd::face::InternalClientTransport::close ( )
inlinefinal

Definition at line 110 of file internal-transport.hpp.

void nfd::face::InternalClientTransport::connectToForwarder ( InternalForwarderTransport forwarder)

Connect to a forwarder-side transport.

Parameters
forwarderthe forwarder-side transport to connect to; may be nullptr

The connected forwarder-side transport will be disconnected automatically if this method is called again, or if that transport is closed. It's safe to use InternalClientTransport without a connected forwarder-side transport: all sent packets would be lost, and nothing would be received.

Definition at line 82 of file internal-transport.cpp.

void nfd::face::InternalClientTransport::pause ( )
inlinefinal

Definition at line 115 of file internal-transport.hpp.

void nfd::face::InternalClientTransport::receivePacket ( const Block &  packet)
finalvirtual

Implements nfd::face::InternalTransportBase.

Definition at line 107 of file internal-transport.cpp.

void nfd::face::InternalClientTransport::resume ( )
inlinefinal

Definition at line 120 of file internal-transport.hpp.

void nfd::face::InternalClientTransport::send ( const Block &  wire)
final

Definition at line 118 of file internal-transport.cpp.

void nfd::face::InternalClientTransport::send ( const Block &  header,
const Block &  payload 
)
final

Definition at line 127 of file internal-transport.cpp.