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

contains link layer byte counters More...

#include <face-counters.hpp>

Inheritance diagram for nfd::LinkLayerCounters:
Collaboration diagram for nfd::LinkLayerCounters:

Public Member Functions

const ByteCountergetNInBytes () const
 received bytes More...
 
ByteCountergetNInBytes ()
 
const ByteCountergetNOutBytes () const
 sent bytes More...
 
ByteCountergetNOutBytes ()
 

Protected Member Functions

template<typename R >
void copyTo (R &recipient) const
 copy current obseverations to a struct More...
 

Detailed Description

contains link layer byte counters

Definition at line 186 of file face-counters.hpp.

Member Function Documentation

const ByteCounter& nfd::LinkLayerCounters::getNInBytes ( ) const
inline

received bytes

Definition at line 191 of file face-counters.hpp.

Referenced by nfd::EthernetFace::close(), and nfd::WebSocketFace::handleReceive().

ByteCounter& nfd::LinkLayerCounters::getNInBytes ( )
inline

Definition at line 197 of file face-counters.hpp.

const ByteCounter& nfd::LinkLayerCounters::getNOutBytes ( ) const
inline
ByteCounter& nfd::LinkLayerCounters::getNOutBytes ( )
inline

Definition at line 210 of file face-counters.hpp.

template<typename R >
void nfd::LinkLayerCounters::copyTo ( R &  recipient) const
inlineprotected

copy current obseverations to a struct

Parameters
recipientan object with set methods for counters

Definition at line 221 of file face-counters.hpp.

Referenced by nfd::FaceCounters::copyTo().


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