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
 
 operator WvString () const
 
virtual bool comparator (const WvAddr *a2, bool first_pass=true) const
 
virtual const char * type () const
 
virtual unsigned WvHash () const
 
bool operator== (const WvAddr &a2) const
 
bool operator!= (const WvAddr &a2) const
 

Static Public Member Functions

static WvAddrgen (struct sockaddr *addr)
 

Protected Member Functions

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 wvaddr.h.

Constructor & Destructor Documentation

◆ WvEtherAddr() [1/4]

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

Definition at line 194 of file wvaddr.h.

◆ WvEtherAddr() [2/4]

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

Definition at line 196 of file wvaddr.h.

◆ WvEtherAddr() [3/4]

WvEtherAddr::WvEtherAddr ( WvStringParm  string)
inline

Definition at line 198 of file wvaddr.h.

◆ WvEtherAddr() [4/4]

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

Definition at line 201 of file wvaddr.h.

◆ ~WvEtherAddr()

WvEtherAddr::~WvEtherAddr ( )
virtual

Definition at line 257 of file wvaddr.cc.

Member Function Documentation

◆ printable()

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()

WvEncap WvEtherAddr::encap ( ) const
virtual

Implements WvAddr.

Definition at line 281 of file wvaddr.cc.

◆ isbroadcast()

bool WvEtherAddr::isbroadcast ( ) const
virtual

Reimplemented from WvAddr.

Definition at line 288 of file wvaddr.cc.

◆ sockaddr()

sockaddr_bin * WvEtherAddr::sockaddr ( ) const
virtual

Implements WvAddr.

Definition at line 309 of file wvaddr.cc.

◆ sockaddr_len()

size_t WvEtherAddr::sockaddr_len ( ) const
virtual

Implements WvAddr.

Definition at line 319 of file wvaddr.cc.

◆ rawdata()

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

Reimplemented from WvAddr.

Definition at line 297 of file wvaddr.cc.

◆ rawdata_len()

size_t WvEtherAddr::rawdata_len ( ) const
virtual

Reimplemented from WvAddr.

Definition at line 303 of file wvaddr.cc.

◆ gen()

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

Definition at line 99 of file wvaddr.cc.

◆ operator WvString()

WvAddr::operator WvString ( ) const
inlineinherited

Definition at line 129 of file wvaddr.h.

◆ comparator()

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

Definition at line 160 of file wvaddr.cc.

◆ type()

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

Definition at line 134 of file wvaddr.h.

◆ WvHash()

unsigned WvAddr::WvHash ( ) const
virtualinherited

Reimplemented in WvIPNet.

Definition at line 145 of file wvaddr.cc.

◆ operator==()

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

Definition at line 146 of file wvaddr.h.

◆ operator!=()

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

Definition at line 148 of file wvaddr.h.


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