The contents of this legacy page are no longer maintained nor supported, and are made available only for historical purposes.


CflowdNetMatrixTrafficCounter Documentation

CflowdNetMatrixTrafficCounter

All class functions are defined inline.


[ libCfd | Source | Keywords | Summary | Ancestors | All Members | Descendants ]

Quick Index

DESCRIPTION

Class Summary

class CflowdNetMatrixTrafficCounter

{

public:
CflowdNetMatrixTrafficCounter() ;
uint64_t Pkts() const ;
uint64_t Pkts(uint64_t pkts) ;
uint64_t AddPkts(uint64_t pkts) ;
uint64_t Bytes() const ;
uint64_t Bytes(uint64_t bytes) ;
uint64_t AddBytes(uint64_t bytes) ;
istream & read(istream & is) ;
int read(int fd) ;
ostream & write(ostream & os) const ;
int write(int fd) const ;
protected:
}; // CflowdNetMatrixTrafficCounter

Back to the top of CflowdNetMatrixTrafficCounter


DESCRIPTION


---------------------------------------------------------------------------
class CflowdNetMatrixTrafficCounter
---------------------------------------------------------------------------
This class is used to hold traffic (packet and byte) counters for an NET matrix entry. Note that I've inlined everything; this class' members get called frequently and we don't ever want function call overhead where we can avoid it.
---------------------------------------------------------------------------

Back to the top of CflowdNetMatrixTrafficCounter


CflowdNetMatrixTrafficCounter() ;


-------------------------------------------------------------------------
inline CflowdNetMatrixTrafficCounter()
.........................................................................
constructor
-------------------------------------------------------------------------

  inline CflowdNetMatrixTrafficCounter()
                                                  
;

Function is currently defined inline.


Back to the top of CflowdNetMatrixTrafficCounter


uint64_t Pkts() const ;


-------------------------------------------------------------------------
inline uint64_t Pkts() const
.........................................................................
Returns the packet counter.
-------------------------------------------------------------------------

  inline uint64_t Pkts() const
                                
;

Function is currently defined inline.


Back to the top of CflowdNetMatrixTrafficCounter


uint64_t Pkts(uint64_t pkts) ;


-------------------------------------------------------------------------
inline uint64_t Pkts(uint64_t pkts)
.........................................................................
Sets and returns the packet counter.
-------------------------------------------------------------------------

  inline uint64_t Pkts(uint64_t pkts)
                                                        
;

Function is currently defined inline.


Back to the top of CflowdNetMatrixTrafficCounter


uint64_t AddPkts(uint64_t pkts) ;


-------------------------------------------------------------------------
inline uint64_t AddPkts(uint64_t pkts)
.........................................................................
Adds pkts to the packet counter. Returns the new value for the packet counter.
-------------------------------------------------------------------------

  inline uint64_t AddPkts(uint64_t pkts)
                                                         
;

Function is currently defined inline.


Back to the top of CflowdNetMatrixTrafficCounter


uint64_t Bytes() const ;


-------------------------------------------------------------------------
inline uint64_t Bytes() const
.........................................................................
Returns the byte counter.
-------------------------------------------------------------------------

  inline uint64_t Bytes() const
                                 
;

Function is currently defined inline.


Back to the top of CflowdNetMatrixTrafficCounter


uint64_t Bytes(uint64_t bytes) ;


-------------------------------------------------------------------------
inline uint64_t Bytes(uint64_t bytes)
.........................................................................
Sets and returns the byte counter.
-------------------------------------------------------------------------

  inline uint64_t Bytes(uint64_t bytes)
                                                           
;

Function is currently defined inline.


Back to the top of CflowdNetMatrixTrafficCounter


uint64_t AddBytes(uint64_t bytes) ;


-------------------------------------------------------------------------
inline uint64_t AddBytes(uint64_t bytes)
.........................................................................
Adds bytes to the byte counter. Returns the new value of the byte counter.
-------------------------------------------------------------------------

  inline uint64_t AddBytes(uint64_t bytes)
                                                            
;

Function is currently defined inline.


Back to the top of CflowdNetMatrixTrafficCounter


istream & read(istream & is) ;


-------------------------------------------------------------------------
inline istream & read(istream & is)
.........................................................................
Reads the counter from an istream. Returns the istream.
-------------------------------------------------------------------------

  inline istream & read(istream & is)
                                                                                                                                                                       
;

Function is currently defined inline.


Back to the top of CflowdNetMatrixTrafficCounter


int read(int fd) ;


-------------------------------------------------------------------------
inline int read(int fd)
.........................................................................
Reads the counter from a file descriptor. Returns the number of bytes read on success, -1 on failure.
-------------------------------------------------------------------------

  inline int read(int fd)
                                                                                                                                                                                                                                                                                                                                                                                                         
;

Function is currently defined inline.


Back to the top of CflowdNetMatrixTrafficCounter


ostream & write(ostream & os) const ;


-------------------------------------------------------------------------
inline ostream & write(ostream & os) const
.........................................................................
Writes the counter to an ostream. Returns the ostream.
-------------------------------------------------------------------------

  inline ostream & write(ostream & os) const
                                                                                                                                                                         
;

Function is currently defined inline.


Back to the top of CflowdNetMatrixTrafficCounter


int write(int fd) const ;


-------------------------------------------------------------------------
inline int write(int fd) const
.........................................................................
Writes the counter to a file descriptor. Returns the number of bytes written on success, -1 on failure.
-------------------------------------------------------------------------

  inline int write(int fd) const
                                                                                                                                                                                                                                                                                                                                                                                                               
;

Function is currently defined inline.


Back to the top of CflowdNetMatrixTrafficCounter


All Members

public:
uint64_t Pkts() const ;
uint64_t Pkts(uint64_t pkts) ;
uint64_t AddPkts(uint64_t pkts) ;
uint64_t Bytes() const ;
uint64_t Bytes(uint64_t bytes) ;
uint64_t AddBytes(uint64_t bytes) ;
istream & read(istream & is) ;
int read(int fd) ;
ostream & write(ostream & os) const ;
int write(int fd) const ;
protected:

Back to the top of CflowdNetMatrixTrafficCounter


Ancestors

Class does not inherit from any other class.

Back to the top of CflowdNetMatrixTrafficCounter


Descendants

Class is not inherited by any others.

Back to the top of CflowdNetMatrixTrafficCounter


Generated from source by the Cocoon utilities on Tue Sep 22 04:08:57 1998 .

Report problems to jkotula@unimax.com

Related Objects

See https://catalog.caida.org/software/cflowd/ to explore related objects to this document in the CAIDA Resource Catalog.