nfd::face::WebSocketTransportCounters Class Reference

Counters provided by WebSocketTransport. More...

#include <daemon/face/websocket-transport.hpp>

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

Public Attributes

ByteCounter nInBytes
 Total bytes received. More...
 
PacketCounter nInPackets
 Count of incoming packets. More...
 
PacketCounter nInPongs
 Count of incoming pongs. More...
 
ByteCounter nOutBytes
 Total bytes sent. More...
 
PacketCounter nOutPackets
 Count of outgoing packets. More...
 
PacketCounter nOutPings
 Count of outgoing pings. More...
 

Detailed Description

Counters provided by WebSocketTransport.

Note
The type name WebSocketTransportCounters is an implementation detail. Use WebSocketTransport::Counters in public API.

Definition at line 41 of file websocket-transport.hpp.

Member Data Documentation

◆ nInBytes

ByteCounter nfd::face::TransportCounters::nInBytes
inherited

Total bytes received.

This counter includes headers imposed by NFD (such as NDNLP), but excludes the overhead of the underlying protocol (such as IP header).

For a datagram-based transport, an incoming packet that cannot be parsed as TLV will not be counted.

Definition at line 85 of file transport.hpp.

◆ nInPackets

PacketCounter nfd::face::TransportCounters::nInPackets
inherited

Count of incoming packets.

A 'packet' typically means a top-level TLV element.

For a datagram-based transport, an incoming packet that cannot be parsed as TLV will not be counted.

Definition at line 65 of file transport.hpp.

◆ nInPongs

PacketCounter nfd::face::WebSocketTransportCounters::nInPongs

Count of incoming pongs.

Definition at line 47 of file websocket-transport.hpp.

◆ nOutBytes

ByteCounter nfd::face::TransportCounters::nOutBytes
inherited

Total bytes sent.

This counter includes headers imposed by NFD (such as NDNLP), but excludes the overhead of the underlying protocol (such as IP header).

This counter is increased only when the transport is UP.

Definition at line 95 of file transport.hpp.

◆ nOutPackets

PacketCounter nfd::face::TransportCounters::nOutPackets
inherited

Count of outgoing packets.

A 'packet' typically means a top-level TLV element.

This counter is incremented only when the transport is UP.

Definition at line 74 of file transport.hpp.

◆ nOutPings

PacketCounter nfd::face::WebSocketTransportCounters::nOutPings

Count of outgoing pings.

Definition at line 45 of file websocket-transport.hpp.