NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: 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 122 of file transport.hpp.

Constructor & Destructor Documentation

◆ Packet() [1/2]

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

◆ Packet() [2/2]

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

Definition at line 55 of file transport.cpp.

Member Data Documentation

◆ packet

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

the packet as a TLV block

Definition at line 133 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 141 of file transport.hpp.

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

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