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 &block) final
 

Detailed Description

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

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

Constructor & Destructor Documentation

◆ ~InternalClientTransport()

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

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

Member Function Documentation

◆ close()

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

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

◆ connectToForwarder()

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 83 of file internal-transport.cpp.

◆ pause()

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

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

◆ receivePacket()

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

Implements nfd::face::InternalTransportBase.

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

◆ resume()

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

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

◆ send()

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

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