nfd::face::InternalClientTransport Class Reference

implements a client-side transport that can be paired with another More...

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

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

Public Member Functions

void close () override
 
void connectToForwarder (InternalForwarderTransport *forwarderTransport)
 connect to a forwarder-side transport More...
 
void pause () override
 
void receiveFromLink (const Block &packet) override
 causes the transport to receive a link-layer packet More...
 
void resume () override
 
void send (const Block &wire) override
 
void send (const Block &header, const Block &payload) override
 

Public Attributes

signal::Signal< InternalTransportBase, Block > afterSend
 

Detailed Description

implements a client-side transport that can be paired with another

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

Member Function Documentation

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

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

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

connect to a forwarder-side transport

Parameters
forwarderTransportthe 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 85 of file internal-transport.cpp.

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

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

void nfd::face::InternalClientTransport::receiveFromLink ( const Block &  packet)
overridevirtual

causes the transport to receive a link-layer packet

Implements nfd::face::InternalTransportBase.

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

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

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

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

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

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

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

Member Data Documentation

signal::Signal<InternalTransportBase, Block> nfd::face::InternalTransportBase::afterSend
inherited

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