nfd::face::Transport::Packet Class Reference

stores a packet along with the remote endpoint More...

#include <daemon/face/transport.hpp>

+ Collaboration diagram for nfd::face::Transport::Packet:

Public Member Functions

 Packet ()=default
 
 Packet (Block &&packet)
 

Public Attributes

Block packet
 the packet as a TLV block More...
 
EndpointId remoteEndpoint
 identifies the remote endpoint More...
 

Detailed Description

stores a packet along with the remote endpoint

Definition at line 122 of file transport.hpp.

Constructor & Destructor Documentation

nfd::face::Transport::Packet::Packet ( )
default
nfd::face::Transport::Packet::Packet ( Block &&  packet)
explicit

Definition at line 55 of file transport.cpp.

Member Data Documentation

Block nfd::face::Transport::Packet::packet

the packet as a TLV block

Definition at line 133 of file transport.hpp.

EndpointId nfd::face::Transport::Packet::remoteEndpoint

identifies the remote endpoint

This ID is only meaningful in the context of the same Transport. Incoming packets from the same remote endpoint have the same EndpointId, and incoming packets from different remote endpoints have different EndpointIds.

Definition at line 141 of file transport.hpp.