Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

WvEtherAddr Class Reference

#include <wvaddr.h>

Inheritance diagram for WvEtherAddr:

WvAddr WvAddr List of all members.

Public Methods

 WvEtherAddr (const unsigned char _binaddr[ETH_ALEN]=NULL)
 WvEtherAddr (const char string[])
 WvEtherAddr (const WvString &string)
void string_init (const char string[])
 WvEtherAddr (const struct sockaddr *addr)
virtual ~WvEtherAddr ()
virtual WvEncap encap () const
virtual bool isbroadcast () const
virtual struct sockaddr * sockaddr () const
virtual size_t sockaddr_len () const
virtual const unsigned char * rawdata () const
virtual size_t rawdata_len () const
 WvEtherAddr (const unsigned char _binaddr[ETH_ALEN]=NULL)
 WvEtherAddr (const char string[])
 WvEtherAddr (const WvString &string)
void string_init (const char string[])
 WvEtherAddr (const struct sockaddr *addr)
virtual ~WvEtherAddr ()
virtual WvEncap encap () const
virtual bool isbroadcast () const
virtual struct sockaddr * sockaddr () const
virtual size_t sockaddr_len () const
virtual const unsigned char * rawdata () const
virtual size_t rawdata_len () const

Protected Methods

virtual WvString printable () const
virtual WvString printable () const

Private Attributes

unsigned char binaddr [ETH_ALEN]

Detailed Description

An ethernet address is made up of a string of hex numbers, in the form AA:BB:CC:DD:EE:FF

Definition at line 152 of file include/wvaddr.h.


Constructor & Destructor Documentation

WvEtherAddr::WvEtherAddr const unsigned char    _binaddr[ETH_ALEN] = NULL [inline]
 

Definition at line 160 of file include/wvaddr.h.

References binaddr.

WvEtherAddr::WvEtherAddr const char    string[] [inline]
 

Definition at line 162 of file include/wvaddr.h.

References string_init().

WvEtherAddr::WvEtherAddr const WvString   string [inline]
 

Definition at line 164 of file include/wvaddr.h.

References string_init().

WvEtherAddr::WvEtherAddr const struct sockaddr *    addr [inline]
 

Definition at line 167 of file include/wvaddr.h.

References binaddr, and sockaddr().

WvEtherAddr::~WvEtherAddr   [virtual]
 

Definition at line 247 of file wvaddr.cc.

WvEtherAddr::WvEtherAddr const unsigned char    _binaddr[ETH_ALEN] = NULL [inline]
 

Definition at line 160 of file ipstreams/wvaddr.h.

References binaddr.

WvEtherAddr::WvEtherAddr const char    string[] [inline]
 

Definition at line 162 of file ipstreams/wvaddr.h.

References string_init().

WvEtherAddr::WvEtherAddr const WvString   string [inline]
 

Definition at line 164 of file ipstreams/wvaddr.h.

References string_init().

WvEtherAddr::WvEtherAddr const struct sockaddr *    addr [inline]
 

Definition at line 167 of file ipstreams/wvaddr.h.

References binaddr, and sockaddr().

virtual WvEtherAddr::~WvEtherAddr   [virtual]
 


Member Function Documentation

virtual WvEncap WvEtherAddr::encap   const [virtual]
 

Implements WvAddr.

WvEncap WvEtherAddr::encap   const [virtual]
 

Implements WvAddr.

Definition at line 271 of file wvaddr.cc.

References WvEncap::Ethernet.

virtual bool WvEtherAddr::isbroadcast   const [virtual]
 

Reimplemented from WvAddr.

bool WvEtherAddr::isbroadcast   const [virtual]
 

Reimplemented from WvAddr.

Definition at line 278 of file wvaddr.cc.

References binaddr.

virtual WvString WvEtherAddr::printable   const [protected, virtual]
 

Implements WvAddr.

WvString WvEtherAddr::printable   const [protected, virtual]
 

Implements WvAddr.

Definition at line 254 of file wvaddr.cc.

References binaddr.

virtual const unsigned char* WvEtherAddr::rawdata   const [virtual]
 

Reimplemented from WvAddr.

const unsigned char * WvEtherAddr::rawdata   const [virtual]
 

Reimplemented from WvAddr.

Definition at line 287 of file wvaddr.cc.

References binaddr.

virtual size_t WvEtherAddr::rawdata_len   const [virtual]
 

Reimplemented from WvAddr.

size_t WvEtherAddr::rawdata_len   const [virtual]
 

Reimplemented from WvAddr.

Definition at line 293 of file wvaddr.cc.

virtual struct sockaddr* WvEtherAddr::sockaddr   const [virtual]
 

Implements WvAddr.

sockaddr_bin * WvEtherAddr::sockaddr   const [virtual]
 

Implements WvAddr.

Definition at line 299 of file wvaddr.cc.

References binaddr, and sockaddr_bin.

Referenced by WvEtherAddr().

virtual size_t WvEtherAddr::sockaddr_len   const [virtual]
 

Implements WvAddr.

size_t WvEtherAddr::sockaddr_len   const [virtual]
 

Implements WvAddr.

Definition at line 309 of file wvaddr.cc.

void WvEtherAddr::string_init const char    string[]
 

void WvEtherAddr::string_init const char    string[]
 

Definition at line 232 of file wvaddr.cc.

References binaddr.

Referenced by WvEtherAddr().


Member Data Documentation

unsigned char WvEtherAddr::binaddr [private]
 

Definition at line 154 of file ipstreams/wvaddr.h.

Referenced by isbroadcast(), printable(), rawdata(), sockaddr(), string_init(), and WvEtherAddr().


The documentation for this class was generated from the following files:
Generated on Sun Aug 25 12:42:43 2002 for WvStreams by doxygen1.2.15