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


CflowdAsMatrixTrafficCounter Documentation

CflowdAsMatrixTrafficCounter

All class functions are defined inline.


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

Quick Index

DESCRIPTION

Class Summary

class CflowdAsMatrixTrafficCounter

{

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

Back to the top of CflowdAsMatrixTrafficCounter


DESCRIPTION


---------------------------------------------------------------------------
class CflowdAsMatrixTrafficCounter
---------------------------------------------------------------------------
This class is used to hold traffic (packet and byte) counters for an AS 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 CflowdAsMatrixTrafficCounter


CflowdAsMatrixTrafficCounter() ;


-------------------------------------------------------------------------
inline CflowdAsMatrixTrafficCounter()
.........................................................................
constructor
-------------------------------------------------------------------------

  inline CflowdAsMatrixTrafficCounter()
                                                  
;

Function is currently defined inline.


Back to the top of CflowdAsMatrixTrafficCounter


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 CflowdAsMatrixTrafficCounter


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 CflowdAsMatrixTrafficCounter


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 CflowdAsMatrixTrafficCounter


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 CflowdAsMatrixTrafficCounter


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 CflowdAsMatrixTrafficCounter


uint64_t AddBytes(uint64_t bytes) ;


-------------------------------------------------------------------------
inline uint64_t Bytes(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 CflowdAsMatrixTrafficCounter


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 CflowdAsMatrixTrafficCounter


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 CflowdAsMatrixTrafficCounter


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 CflowdAsMatrixTrafficCounter


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 CflowdAsMatrixTrafficCounter


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 CflowdAsMatrixTrafficCounter


Ancestors

Class does not inherit from any other class.

Back to the top of CflowdAsMatrixTrafficCounter


Descendants

Class is not inherited by any others.

Back to the top of CflowdAsMatrixTrafficCounter


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