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


CflowdPortMatrixTrafficCounter Documentation

CflowdPortMatrixTrafficCounter

All class functions are defined inline.


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

Quick Index

DESCRIPTION

Class Summary

class CflowdPortMatrixTrafficCounter

{

public:
CflowdPortMatrixTrafficCounter() ;
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:
}; // CflowdPortMatrixTrafficCounter

Back to the top of CflowdPortMatrixTrafficCounter


DESCRIPTION


---------------------------------------------------------------------------
class CflowdPortMatrixTrafficCounter
---------------------------------------------------------------------------
This class is used to hold traffic (packet and byte) counters for a port 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 CflowdPortMatrixTrafficCounter


CflowdPortMatrixTrafficCounter() ;


-------------------------------------------------------------------------
inline CflowdPortMatrixTrafficCounter()
.........................................................................
constructor
-------------------------------------------------------------------------

  inline CflowdPortMatrixTrafficCounter()
                                                  
;

Function is currently defined inline.


Back to the top of CflowdPortMatrixTrafficCounter


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 CflowdPortMatrixTrafficCounter


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 CflowdPortMatrixTrafficCounter


uint64_t AddPkts(uint64_t pkts) ;


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

  inline uint64_t AddPkts(uint64_t pkts)
                                                         
;

Function is currently defined inline.


Back to the top of CflowdPortMatrixTrafficCounter


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 CflowdPortMatrixTrafficCounter


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 CflowdPortMatrixTrafficCounter


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 CflowdPortMatrixTrafficCounter


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 CflowdPortMatrixTrafficCounter


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 CflowdPortMatrixTrafficCounter


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 CflowdPortMatrixTrafficCounter


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 CflowdPortMatrixTrafficCounter


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 CflowdPortMatrixTrafficCounter


Ancestors

Class does not inherit from any other class.

Back to the top of CflowdPortMatrixTrafficCounter


Descendants

Class is not inherited by any others.

Back to the top of CflowdPortMatrixTrafficCounter


Generated from source by the Cocoon utilities on Tue Sep 22 04:08:58 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.