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

counters provided by Transport More...

#include <transport.hpp>

Inheritance diagram for nfd::face::TransportCounters:
Collaboration diagram for nfd::face::TransportCounters:

Public Attributes

PacketCounter nInPackets
 count of incoming packets More...
 
PacketCounter nOutPackets
 count of outgoing packets More...
 
ByteCounter nInBytes
 total incoming bytes More...
 
ByteCounter nOutBytes
 total outgoing bytes More...
 

Detailed Description

counters provided by Transport

Note
The type name 'TransportCounters' is implementation detail. Use 'Transport::Counters' in public API.

Definition at line 58 of file transport.hpp.

Member Data Documentation

◆ nInPackets

PacketCounter nfd::face::TransportCounters::nInPackets

count of incoming packets

A 'packet' typically means a top-level TLV block. For a datagram-based transport, an incoming packet that cannot be parsed as TLV would not be counted.

Definition at line 67 of file transport.hpp.

Referenced by nfd::face::Transport::receive().

◆ nOutPackets

PacketCounter nfd::face::TransportCounters::nOutPackets

count of outgoing packets

A 'packet' typically means a top-level TLV block. This counter is incremented only if transport is UP.

Definition at line 74 of file transport.hpp.

Referenced by nfd::face::Transport::send().

◆ nInBytes

ByteCounter nfd::face::TransportCounters::nInBytes

total incoming bytes

This counter includes headers imposed by NFD (such as NDNLP), but excludes overhead of underlying protocol (such as IP header). For a datagram-based transport, an incoming packet that cannot be parsed as TLV would not be counted.

Definition at line 83 of file transport.hpp.

Referenced by nfd::face::Transport::receive().

◆ nOutBytes

ByteCounter nfd::face::TransportCounters::nOutBytes

total outgoing bytes

This counter includes headers imposed by NFD (such as NDNLP), but excludes overhead of underlying protocol (such as IP header). This counter is increased only if transport is UP.

Definition at line 91 of file transport.hpp.

Referenced by nfd::face::Transport::send().


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