WvStreams
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
WvAddr Class Referenceabstract

Base class for different address types, each of which will have the ability to convert itself to/from a printable string, as well as other type-specific abilities. More...

#include <wvaddr.h>

Inheritance diagram for WvAddr:
Inheritance graph
[legend]

Public Member Functions

virtual WvEncap encap () const =0
 
 operator WvString () const
 
virtual bool comparator (const WvAddr *a2, bool first_pass=true) const
 
virtual const char * type () const
 
virtual bool isbroadcast () const
 
virtual struct sockaddr * sockaddr () const =0
 
virtual size_t sockaddr_len () const =0
 
virtual const unsigned char * rawdata () const
 
virtual size_t rawdata_len () const
 
virtual unsigned WvHash () const
 
bool operator== (const WvAddr &a2) const
 
bool operator!= (const WvAddr &a2) const
 
virtual WvEncap encap () const =0
 
 operator WvString () const
 
virtual bool comparator (const WvAddr *a2, bool first_pass=true) const
 
virtual const char * type () const
 
virtual bool isbroadcast () const
 
virtual struct sockaddr * sockaddr () const =0
 
virtual size_t sockaddr_len () const =0
 
virtual const unsigned char * rawdata () const
 
virtual size_t rawdata_len () 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)
 
static WvAddrgen (struct sockaddr *addr)
 

Protected Member Functions

virtual WvString printable () const =0
 
virtual WvString printable () const =0
 

Detailed Description

Base class for different address types, each of which will have the ability to convert itself to/from a printable string, as well as other type-specific abilities.

Definition at line 118 of file debian/libwvstreams-dev/usr/include/wvstreams/wvaddr.h.

Constructor & Destructor Documentation

◆ WvAddr() [1/2]

WvAddr::WvAddr ( )
inline

◆ ~WvAddr() [1/2]

virtual WvAddr::~WvAddr ( )
inlinevirtual

◆ WvAddr() [2/2]

WvAddr::WvAddr ( )
inline

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

◆ ~WvAddr() [2/2]

virtual WvAddr::~WvAddr ( )
inlinevirtual

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

Member Function Documentation

◆ gen()

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

Definition at line 99 of file wvaddr.cc.

◆ operator WvString() [1/2]

WvAddr::operator WvString ( ) const
inline

◆ comparator()

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

Definition at line 160 of file wvaddr.cc.

◆ type() [1/2]

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

◆ isbroadcast()

bool WvAddr::isbroadcast ( ) const
virtual

Definition at line 127 of file wvaddr.cc.

◆ rawdata()

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

Definition at line 133 of file wvaddr.cc.

◆ rawdata_len()

size_t WvAddr::rawdata_len ( ) const
virtual

Definition at line 139 of file wvaddr.cc.

◆ WvHash() [1/2]

unsigned WvAddr::WvHash ( ) const
virtual

Reimplemented in WvIPNet, and WvIPNet.

Definition at line 145 of file wvaddr.cc.

◆ operator==() [1/2]

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

◆ operator!=() [1/2]

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

◆ operator WvString() [2/2]

WvAddr::operator WvString ( ) const
inline

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

◆ type() [2/2]

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

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

◆ WvHash() [2/2]

virtual unsigned WvAddr::WvHash ( ) const
virtual

Reimplemented in WvIPNet, and WvIPNet.

◆ operator==() [2/2]

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

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

◆ operator!=() [2/2]

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

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


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