NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.3: NDN, CCN, CCNx, content centric networks
API Documentation
nfd::face::Transport::Packet Class Reference

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

#include <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 113 of file transport.hpp.

Constructor & Destructor Documentation

◆ Packet() [1/2]

nfd::face::Transport::Packet::Packet ( )
default

◆ Packet() [2/2]

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

Definition at line 53 of file transport.cpp.

Member Data Documentation

◆ packet

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

the packet as a TLV block

Definition at line 124 of file transport.hpp.

Referenced by nfd::face::InternalForwarderTransport::receiveFromLink().

◆ remoteEndpoint

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 132 of file transport.hpp.

Referenced by nfd::face::DatagramTransport< boost::asio::ip::udp, Multicast >::receiveDatagram().


The documentation for this class was generated from the following files: