WvStreams
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
WvEtherAddr Class Reference

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

#include <wvaddr.h>

Inheritance diagram for WvEtherAddr:
Inheritance graph
[legend]

Public Member Functions

 WvEtherAddr (const unsigned char _binaddr[ETHER_ADDR_LEN]=NULL)
 
 WvEtherAddr (const char string[])
 
 WvEtherAddr (WvStringParm string)
 
void string_init (const char string[])
 
 WvEtherAddr (const struct sockaddr *addr)
 
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[ETHER_ADDR_LEN]=NULL)
 
 WvEtherAddr (const char string[])
 
 WvEtherAddr (WvStringParm string)
 
void string_init (const char string[])
 
 WvEtherAddr (const struct sockaddr *addr)
 
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
 
 operator WvString () const
 
 operator WvString () const
 
virtual bool comparator (const WvAddr *a2, bool first_pass=true) const
 
virtual bool comparator (const WvAddr *a2, bool first_pass=true) const
 
virtual const char * type () const
 
virtual const char * type () const
 
virtual unsigned WvHash () const
 
virtual unsigned WvHash () const
 
bool operator== (const WvAddr &a2) const
 
bool operator== (const WvAddr &a2) const
 
bool operator!= (const WvAddr &a2) const
 
bool operator!= (const WvAddr &a2) const
 

Static Public Member Functions

static WvAddrgen (struct sockaddr *addr)
 
static WvAddrgen (struct sockaddr *addr)
 

Protected Member Functions

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

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 186 of file debian/libwvstreams-dev/usr/include/wvstreams/wvaddr.h.

Constructor & Destructor Documentation

◆ WvEtherAddr() [1/8]

WvEtherAddr::WvEtherAddr ( const unsigned char  _binaddr[ETHER_ADDR_LEN] = NULL)
inline

◆ WvEtherAddr() [2/8]

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

◆ WvEtherAddr() [3/8]

WvEtherAddr::WvEtherAddr ( WvStringParm  string)
inline

◆ WvEtherAddr() [4/8]

WvEtherAddr::WvEtherAddr ( const struct sockaddr *  addr)
inline

◆ ~WvEtherAddr()

WvEtherAddr::~WvEtherAddr ( )
virtual

Definition at line 257 of file wvaddr.cc.

◆ WvEtherAddr() [5/8]

WvEtherAddr::WvEtherAddr ( const unsigned char  _binaddr[ETHER_ADDR_LEN] = NULL)
inline

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

◆ WvEtherAddr() [6/8]

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

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

◆ WvEtherAddr() [7/8]

WvEtherAddr::WvEtherAddr ( WvStringParm  string)
inline

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

◆ WvEtherAddr() [8/8]

WvEtherAddr::WvEtherAddr ( const struct sockaddr *  addr)
inline

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

Member Function Documentation

◆ printable() [1/2]

WvString WvEtherAddr::printable ( ) const
protectedvirtual

Implements WvAddr.

Definition at line 264 of file wvaddr.cc.

◆ string_init()

void WvEtherAddr::string_init ( const char  string[])

Definition at line 242 of file wvaddr.cc.

◆ encap() [1/2]

WvEncap WvEtherAddr::encap ( ) const
virtual

Implements WvAddr.

Definition at line 281 of file wvaddr.cc.

◆ isbroadcast() [1/2]

bool WvEtherAddr::isbroadcast ( ) const
virtual

Reimplemented from WvAddr.

Definition at line 288 of file wvaddr.cc.

◆ sockaddr() [1/2]

sockaddr_bin * WvEtherAddr::sockaddr ( ) const
virtual

Implements WvAddr.

Definition at line 309 of file wvaddr.cc.

◆ sockaddr_len() [1/2]

size_t WvEtherAddr::sockaddr_len ( ) const
virtual

Implements WvAddr.

Definition at line 319 of file wvaddr.cc.

◆ rawdata() [1/2]

const unsigned char * WvEtherAddr::rawdata ( ) const
virtual

Reimplemented from WvAddr.

Definition at line 297 of file wvaddr.cc.

◆ rawdata_len() [1/2]

size_t WvEtherAddr::rawdata_len ( ) const
virtual

Reimplemented from WvAddr.

Definition at line 303 of file wvaddr.cc.

◆ printable() [2/2]

virtual WvString WvEtherAddr::printable ( ) const
protectedvirtual

Implements WvAddr.

◆ encap() [2/2]

virtual WvEncap WvEtherAddr::encap ( ) const
virtual

Implements WvAddr.

◆ isbroadcast() [2/2]

virtual bool WvEtherAddr::isbroadcast ( ) const
virtual

Reimplemented from WvAddr.

◆ sockaddr() [2/2]

virtual struct sockaddr * WvEtherAddr::sockaddr ( ) const
virtual

Implements WvAddr.

◆ sockaddr_len() [2/2]

virtual size_t WvEtherAddr::sockaddr_len ( ) const
virtual

Implements WvAddr.

◆ rawdata() [2/2]

virtual const unsigned char * WvEtherAddr::rawdata ( ) const
virtual

Reimplemented from WvAddr.

◆ rawdata_len() [2/2]

virtual size_t WvEtherAddr::rawdata_len ( ) const
virtual

Reimplemented from WvAddr.

◆ gen()

WvAddr * WvAddr::gen ( struct sockaddr *  addr)
staticinherited

Definition at line 99 of file wvaddr.cc.

◆ operator WvString() [1/2]

WvAddr::operator WvString ( ) const
inlineinherited

◆ operator WvString() [2/2]

WvAddr::operator WvString ( ) const
inlineinherited

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

◆ comparator()

bool WvAddr::comparator ( const WvAddr a2,
bool  first_pass = true 
) const
virtualinherited

Definition at line 160 of file wvaddr.cc.

◆ type() [1/2]

virtual const char * WvAddr::type ( ) const
inlinevirtualinherited

◆ type() [2/2]

virtual const char * WvAddr::type ( ) const
inlinevirtualinherited

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

◆ WvHash() [1/2]

unsigned WvAddr::WvHash ( ) const
virtualinherited

Reimplemented in WvIPNet, and WvIPNet.

Definition at line 145 of file wvaddr.cc.

◆ WvHash() [2/2]

virtual unsigned WvAddr::WvHash ( ) const
virtualinherited

Reimplemented in WvIPNet, and WvIPNet.

◆ operator==() [1/2]

bool WvAddr::operator== ( const WvAddr a2) const
inlineinherited

◆ operator==() [2/2]

bool WvAddr::operator== ( const WvAddr a2) const
inlineinherited

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

◆ operator!=() [1/2]

bool WvAddr::operator!= ( const WvAddr a2) const
inlineinherited

◆ operator!=() [2/2]

bool WvAddr::operator!= ( const WvAddr a2) const
inlineinherited

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


The documentation for this class was generated from the following files: