nfd::face::TransportCounters Class Reference

Counters provided by a transport. More...

#include <daemon/face/transport.hpp>

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

Public Attributes

ByteCounter nInBytes
 Total incoming bytes. More...
 
PacketCounter nInPackets
 Count of incoming packets. More...
 
ByteCounter nOutBytes
 Total outgoing bytes. More...
 
PacketCounter nOutPackets
 Count of outgoing packets. More...
 

Detailed Description

Counters provided by a transport.

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

Definition at line 53 of file transport.hpp.

Member Data Documentation

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

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

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

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