Gives access to the counters provided by Face.
More...
#include <daemon/face/face.hpp>
Gives access to the counters provided by Face.
This type is a facade that exposes common counters of a Face.
get<T>() can be used to access extended counters provided by LinkService or Transport of the Face.
Definition at line 51 of file face.hpp.
◆ FaceCounters()
◆ get() [1/2]
template<typename T >
std::enable_if_t<std::is_base_of_v<LinkService::Counters, T>, const T&> nfd::face::FaceCounters::get |
( |
| ) |
const |
|
inline |
Returns the counters provided by (a subclass of) LinkService.
- Template Parameters
-
T | The desired counters type |
- Exceptions
-
std::bad_cast | counters type mismatch |
Definition at line 64 of file face.hpp.
◆ get() [2/2]
template<typename T >
std::enable_if_t<std::is_base_of_v<Transport::Counters, T>, const T&> nfd::face::FaceCounters::get |
( |
| ) |
const |
|
inline |
Returns the counters provided by (a subclass of) Transport.
- Template Parameters
-
T | The desired counters type |
- Exceptions
-
std::bad_cast | counters type mismatch |
Definition at line 76 of file face.hpp.
◆ nInBytes
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 92 of file face.hpp.
◆ nInData
Count of incoming Data packets.
Definition at line 85 of file face.hpp.
◆ nInHopLimitZero
Count of incoming Interests dropped due to HopLimit == 0.
Definition at line 96 of file face.hpp.
◆ nInInterests
Count of incoming Interest packets.
Definition at line 82 of file face.hpp.
◆ nInNacks
Count of incoming Nack packets.
Definition at line 87 of file face.hpp.
◆ nInPackets
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 90 of file face.hpp.
◆ nInterestsExceededRetx
const PacketCounter& nfd::face::FaceCounters::nInterestsExceededRetx |
Count of Interests dropped by reliability system for exceeding allowed number of retx.
Definition at line 84 of file face.hpp.
◆ nOutBytes
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 93 of file face.hpp.
◆ nOutData
Count of outgoing Data packets.
Definition at line 86 of file face.hpp.
◆ nOutHopLimitZero
Count of outgoing Interests dropped due to HopLimit == 0 on non-local faces.
Definition at line 98 of file face.hpp.
◆ nOutInterests
Count of outgoing Interest packets.
Definition at line 83 of file face.hpp.
◆ nOutNacks
Count of outgoing Nack packets.
Definition at line 88 of file face.hpp.
◆ nOutPackets
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 91 of file face.hpp.