Implements a client-side transport that can be paired with an InternalForwarderTransport.
More...
#include <daemon/face/internal-transport.hpp>
Implements a client-side transport that can be paired with an InternalForwarderTransport.
Definition at line 86 of file internal-transport.hpp.
◆ ~InternalClientTransport()
nfd::face::InternalClientTransport::~InternalClientTransport |
( |
| ) |
|
|
final |
◆ close()
void nfd::face::InternalClientTransport::close |
( |
| ) |
|
|
inlinefinal |
◆ connectToForwarder()
Connect to a forwarder-side transport.
- Parameters
-
forwarder | the 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 |
◆ receivePacket()
void nfd::face::InternalClientTransport::receivePacket |
( |
const Block & |
packet | ) |
|
|
finalvirtual |
◆ resume()
void nfd::face::InternalClientTransport::resume |
( |
| ) |
|
|
inlinefinal |
◆ send()
void nfd::face::InternalClientTransport::send |
( |
const Block & |
block | ) |
|
|
final |