PTLib  Version 2.10.11
PEthSocket::Address Union Reference

An ethernet MAC Address specification. More...

#include <ethsock.h>

Public Member Functions

 Address ()
 
 Address (const BYTE *addr)
 
 Address (const Address &addr)
 
 Address (const PString &str)
 
Addressoperator= (const Address &addr)
 
Addressoperator= (const PString &str)
 
bool operator== (const BYTE *eth) const
 
bool operator!= (const BYTE *eth) const
 
bool operator== (const Address &eth) const
 
bool operator!= (const Address &eth) const
 
 operator PString () const
 

Public Attributes

BYTE b [6]
 
WORD w [3]
 
struct {
   DWORD   l
 
   WORD   s
 
ls
 

Friends

ostream & operator<< (ostream &s, const Address &a)
 

Detailed Description

An ethernet MAC Address specification.

Constructor & Destructor Documentation

§ Address() [1/4]

PEthSocket::Address::Address ( )

§ Address() [2/4]

PEthSocket::Address::Address ( const BYTE *  addr)

§ Address() [3/4]

PEthSocket::Address::Address ( const Address addr)

§ Address() [4/4]

PEthSocket::Address::Address ( const PString str)

Member Function Documentation

§ operator PString()

PEthSocket::Address::operator PString ( ) const

§ operator!=() [1/2]

bool PEthSocket::Address::operator!= ( const BYTE *  eth) const

§ operator!=() [2/2]

bool PEthSocket::Address::operator!= ( const Address eth) const
inline

References l, ls, and s.

§ operator=() [1/2]

Address& PEthSocket::Address::operator= ( const Address addr)

§ operator=() [2/2]

Address& PEthSocket::Address::operator= ( const PString str)

§ operator==() [1/2]

bool PEthSocket::Address::operator== ( const BYTE *  eth) const

§ operator==() [2/2]

bool PEthSocket::Address::operator== ( const Address eth) const
inline

References l, ls, and s.

Friends And Related Function Documentation

§ operator<<

ostream& operator<< ( ostream &  s,
const Address a 
)
friend

Member Data Documentation

§ b

BYTE PEthSocket::Address::b[6]

§ l

DWORD PEthSocket::Address::l

Referenced by operator!=(), and operator==().

§ ls

struct { ... } PEthSocket::Address::ls

Referenced by operator!=(), and operator==().

§ s

WORD PEthSocket::Address::s

Referenced by operator!=(), and operator==().

§ w

WORD PEthSocket::Address::w[3]

The documentation for this union was generated from the following file: