ArtsProtocolTableEntry


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

Quick Index

DESCRIPTION

Class Summary

class ArtsProtocolTableEntry

{

public:
ArtsProtocolTableEntry();
~ArtsProtocolTableEntry();
uint8_t ProtocolNumber() const;
uint8_t ProtocolNumber(uint8_t protocol);
uint64_t Pkts() const;
uint64_t Pkts(uint64_t pkts);
uint64_t Bytes() const;
uint64_t Bytes(uint64_t bytes);
uint32_t Length(uint8_t version ) const;
uint8_t Descriptor() const;
uint8_t Descriptor(uint8_t descriptor);
istream& read(istream& is, uint8_t version );
int read(int fd, uint8_t version );
ostream& write(ostream& os, uint8_t version ) const;
int write(int fd, uint8_t version ) const;
operator = (const ArtsProtocolTableEntry & artsProtocolTableEntry);
operator << (ostream& os, const ArtsProtocolTableEntry & artsProtocolTableEntry);
protected:
}; // ArtsProtocolTableEntry

Back to the top of ArtsProtocolTableEntry


DESCRIPTION


---------------------------------------------------------------------------
class ArtsProtocolTableEntry
---------------------------------------------------------------------------
Class representing a protocol table entry. This class is used to hold IP traffic counters (number of packets and bytes) per protocol (TCP, UDP, ICMP, et. al.).
---------------------------------------------------------------------------

Back to the top of ArtsProtocolTableEntry


ArtsProtocolTableEntry();


-------------------------------------------------------------------------
ArtsProtocolTableEntry()
.........................................................................
constructor
-------------------------------------------------------------------------

  ArtsProtocolTableEntry();

Back to the top of ArtsProtocolTableEntry


~ArtsProtocolTableEntry();


-------------------------------------------------------------------------
~ArtsProtocolTableEntry()
.........................................................................
destructor
-------------------------------------------------------------------------

  ~ArtsProtocolTableEntry();

Back to the top of ArtsProtocolTableEntry


uint8_t ProtocolNumber() const;


-------------------------------------------------------------------------
uint8_t ProtocolNumber() const
.........................................................................
Returns the protocol number for the protocol entry.
-------------------------------------------------------------------------

  uint8_t ProtocolNumber() const;

Back to the top of ArtsProtocolTableEntry


uint8_t ProtocolNumber(uint8_t protocol);


-------------------------------------------------------------------------
uint8_t ProtocolNumber(uint8_t protocol)
.........................................................................
Sets and returns the protocol number for the protocol entry.
-------------------------------------------------------------------------

  uint8_t ProtocolNumber(uint8_t protocol);

Back to the top of ArtsProtocolTableEntry


uint64_t Pkts() const;


-------------------------------------------------------------------------
uint64_t Pkts() const
.........................................................................
Returns the packet count for the protocol entry.
-------------------------------------------------------------------------

  uint64_t Pkts() const;

Back to the top of ArtsProtocolTableEntry


uint64_t Pkts(uint64_t pkts);


-------------------------------------------------------------------------
uint64_t Pkts(uint64_t pkts)
.........................................................................
Sets and returns the packet count for the protocol entry.
-------------------------------------------------------------------------

  uint64_t Pkts(uint64_t pkts);

Back to the top of ArtsProtocolTableEntry


uint64_t Bytes() const;


-------------------------------------------------------------------------
inline uint64_t Bytes() const
.........................................................................
Returns the byte count for the protocol entry.
-------------------------------------------------------------------------

  uint64_t Bytes() const;

Back to the top of ArtsProtocolTableEntry


uint64_t Bytes(uint64_t bytes);


-------------------------------------------------------------------------
inline uint64_t Bytes(uint64_t bytes)
.........................................................................
Sets and returns the byte count for the protocol entry.
-------------------------------------------------------------------------

  uint64_t Bytes(uint64_t bytes);

Back to the top of ArtsProtocolTableEntry


uint32_t Length(uint8_t version ) const;


-------------------------------------------------------------------------
uint32_t Length(uint8_t version = 0) const
.........................................................................
Returns the number of bytes needed to store the protocol entry in a file.
-------------------------------------------------------------------------

  uint32_t Length(uint8_t version = 0) const;

Back to the top of ArtsProtocolTableEntry


uint8_t Descriptor() const;


-------------------------------------------------------------------------
uint8_t Descriptor() const
.........................................................................
Returns the descriptor field.
-------------------------------------------------------------------------

  uint8_t Descriptor() const;

Back to the top of ArtsProtocolTableEntry


uint8_t Descriptor(uint8_t descriptor);


-------------------------------------------------------------------------
uint8_t Descriptor(uint8_t descriptor)
.........................................................................
Sets and returns the descriptor field.
-------------------------------------------------------------------------

  uint8_t Descriptor(uint8_t descriptor);

Back to the top of ArtsProtocolTableEntry


istream& read(istream& is, uint8_t version );


-------------------------------------------------------------------------
istream& read(istream& is, uint8_t version = 0)
.........................................................................
Reads an ArtsProtocolTableEntry from an istream. Returns the istream.
-------------------------------------------------------------------------

  istream& read(istream& is, uint8_t version = 0);

Back to the top of ArtsProtocolTableEntry


int read(int fd, uint8_t version );


-------------------------------------------------------------------------
int read(int fd, uint8_t version = 0)
.........................................................................
Reads an ArtsProtocolTableEntry from a file descriptor. Returns the number of bytes read on success, -1 on failure.
-------------------------------------------------------------------------

  int read(int fd, uint8_t version = 0);

Back to the top of ArtsProtocolTableEntry


ostream& write(ostream& os, uint8_t version ) const;


-------------------------------------------------------------------------
ostream& write(ostream& os, uint8_t version = 0) const
.........................................................................
Writes an ArtsProtocolTableEntry to an ostream. Returns the ostream.
-------------------------------------------------------------------------

  ostream& write(ostream& os, uint8_t version = 0) const;

Back to the top of ArtsProtocolTableEntry


int write(int fd, uint8_t version ) const;


-------------------------------------------------------------------------
int write(int fd, uint8_t version = 0) const
.........................................................................
Writes an ArtsProtocolTableEntry to a file descriptor. Returns the number of bytes written on success, -1 on failure.
-------------------------------------------------------------------------

  int write(int fd, uint8_t version = 0) const;

Back to the top of ArtsProtocolTableEntry


operator = (const ArtsProtocolTableEntry & artsProtocolTableEntry);

No documentation available.

  operator = (const ArtsProtocolTableEntry & artsProtocolTableEntry);

Back to the top of ArtsProtocolTableEntry


operator << (ostream& os, const ArtsProtocolTableEntry & artsProtocolTableEntry);

No documentation available.

  operator << (ostream& os,
               const ArtsProtocolTableEntry & artsProtocolTableEntry);

Back to the top of ArtsProtocolTableEntry


All Members

public:
uint8_t ProtocolNumber() const;
uint8_t ProtocolNumber(uint8_t protocol);
uint64_t Pkts() const;
uint64_t Pkts(uint64_t pkts);
uint64_t Bytes() const;
uint64_t Bytes(uint64_t bytes);
uint32_t Length(uint8_t version ) const;
uint8_t Descriptor() const;
uint8_t Descriptor(uint8_t descriptor);
istream& read(istream& is, uint8_t version );
int read(int fd, uint8_t version );
ostream& write(ostream& os, uint8_t version ) const;
int write(int fd, uint8_t version ) const;
operator = (const ArtsProtocolTableEntry & artsProtocolTableEntry);
operator << (ostream& os, const ArtsProtocolTableEntry & artsProtocolTableEntry);
protected:

Back to the top of ArtsProtocolTableEntry


Ancestors

Class does not inherit from any other class.

Back to the top of ArtsProtocolTableEntry


Descendants

Class is not inherited by any others.

Back to the top of ArtsProtocolTableEntry


Generated from source by the Cocoon utilities on Sat Oct 17 14:40:03 1998 .

Report problems to jkotula@unimax.com