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

WvIPAddr Class Reference

#include <wvaddr.h>

Inheritance diagram for WvIPAddr:

WvAddr WvAddr WvIPNet WvIPNet WvIPPortAddr WvIPPortAddr List of all members.

Public Methods

 WvIPAddr (const unsigned char _binaddr[4])
 WvIPAddr (const __u32 _binaddr=0)
 WvIPAddr (const char string[])
 WvIPAddr (const WvString &string)
void string_init (const char string[])
 WvIPAddr (const struct sockaddr *addr)
 WvIPAddr (const WvIPAddr &_addr)
virtual ~WvIPAddr ()
WvIPAddr operator & (const WvIPAddr &a2) const
WvIPAddr operator| (const WvIPAddr &a2) const
WvIPAddr operator^ (const WvIPAddr &a2) const
WvIPAddr operator~ () const
WvIPAddr operator+ (int n) const
WvIPAddr operator- (int n) const
__u32 s_addr () const
virtual WvEncap encap () const
virtual struct sockaddr * sockaddr () const
virtual size_t sockaddr_len () const
virtual const unsigned char * rawdata () const
virtual size_t rawdata_len () const
 WvIPAddr (const unsigned char _binaddr[4])
 WvIPAddr (const __u32 _binaddr=0)
 WvIPAddr (const char string[])
 WvIPAddr (const WvString &string)
void string_init (const char string[])
 WvIPAddr (const struct sockaddr *addr)
 WvIPAddr (const WvIPAddr &_addr)
virtual ~WvIPAddr ()
WvIPAddr operator & (const WvIPAddr &a2) const
WvIPAddr operator| (const WvIPAddr &a2) const
WvIPAddr operator^ (const WvIPAddr &a2) const
WvIPAddr operator~ () const
WvIPAddr operator+ (int n) const
WvIPAddr operator- (int n) const
__u32 s_addr () const
virtual WvEncap encap () const
virtual struct sockaddr * sockaddr () const
virtual size_t sockaddr_len () const
virtual const unsigned char * rawdata () const
virtual size_t rawdata_len () const

Public Attributes

unsigned char binaddr [4]

Protected Methods

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

Detailed Description

An IP address is made up of a "dotted quad" -- four decimal numbers in the form www.xxx.yyy.zzz

We don't support automatic name lookups yet, but this will be the place to do it when support is added.

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


Constructor & Destructor Documentation

WvIPAddr::WvIPAddr const unsigned char    _binaddr[4] [inline]
 

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

References binaddr.

Referenced by WvIPNet::base(), WvIPNet::normalize(), operator &(), operator+(), operator-(), operator^(), operator|(), operator~(), WvIPNet::string_init(), and WvIPNet::WvIPNet().

WvIPAddr::WvIPAddr const __u32    _binaddr = 0 [inline]
 

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

References __u32, and binaddr.

WvIPAddr::WvIPAddr const char    string[] [inline]
 

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

References string_init().

WvIPAddr::WvIPAddr const WvString   string [inline]
 

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

References string_init().

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

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

References binaddr, and sockaddr().

WvIPAddr::WvIPAddr const WvIPAddr &    _addr [inline]
 

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

References binaddr.

WvIPAddr::~WvIPAddr   [virtual]
 

Definition at line 384 of file wvaddr.cc.

WvIPAddr::WvIPAddr const unsigned char    _binaddr[4] [inline]
 

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

References binaddr.

WvIPAddr::WvIPAddr const __u32    _binaddr = 0 [inline]
 

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

References __u32, and binaddr.

WvIPAddr::WvIPAddr const char    string[] [inline]
 

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

References string_init().

WvIPAddr::WvIPAddr const WvString   string [inline]
 

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

References string_init().

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

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

References binaddr, and sockaddr().

WvIPAddr::WvIPAddr const WvIPAddr &    _addr [inline]
 

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

References binaddr.

virtual WvIPAddr::~WvIPAddr   [virtual]
 


Member Function Documentation

virtual WvEncap WvIPAddr::encap   const [virtual]
 

Implements WvAddr.

WvEncap WvIPAddr::encap   const [virtual]
 

Implements WvAddr.

Definition at line 459 of file wvaddr.cc.

References WvEncap::IPv4.

WvIPAddr WvIPAddr::operator & const WvIPAddr &    a2 const
 

WvIPAddr WvIPAddr::operator & const WvIPAddr &    a2 const
 

Definition at line 399 of file wvaddr.cc.

References binaddr, and WvIPAddr().

WvIPAddr WvIPAddr::operator+ int    n const
 

WvIPAddr WvIPAddr::operator+ int    n const
 

Definition at line 445 of file wvaddr.cc.

References s_addr(), and WvIPAddr().

WvIPAddr WvIPAddr::operator- int    n const
 

WvIPAddr WvIPAddr::operator- int    n const
 

Definition at line 452 of file wvaddr.cc.

References s_addr(), and WvIPAddr().

WvIPAddr WvIPAddr::operator^ const WvIPAddr &    a2 const
 

WvIPAddr WvIPAddr::operator^ const WvIPAddr &    a2 const
 

Definition at line 421 of file wvaddr.cc.

References binaddr, and WvIPAddr().

WvIPAddr WvIPAddr::operator| const WvIPAddr &    a2 const
 

WvIPAddr WvIPAddr::operator| const WvIPAddr &    a2 const
 

Definition at line 410 of file wvaddr.cc.

References binaddr, and WvIPAddr().

WvIPAddr WvIPAddr::operator~   const
 

WvIPAddr WvIPAddr::operator~   const
 

Definition at line 432 of file wvaddr.cc.

References binaddr, and WvIPAddr().

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

Implements WvAddr.

Reimplemented in WvIPNet, WvIPPortAddr, WvIPNet, and WvIPPortAddr.

WvString WvIPAddr::printable   const [protected, virtual]
 

Implements WvAddr.

Reimplemented in WvIPNet, WvIPPortAddr, WvIPNet, and WvIPPortAddr.

Definition at line 391 of file wvaddr.cc.

References binaddr.

Referenced by WvIPPortAddr::printable(), and WvIPNet::printable().

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

Reimplemented from WvAddr.

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

Reimplemented from WvAddr.

Definition at line 465 of file wvaddr.cc.

References binaddr.

virtual size_t WvIPAddr::rawdata_len   const [virtual]
 

Reimplemented from WvAddr.

size_t WvIPAddr::rawdata_len   const [virtual]
 

Reimplemented from WvAddr.

Definition at line 471 of file wvaddr.cc.

__u32 WvIPAddr::s_addr   const [inline]
 

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

References __u32, and binaddr.

__u32 WvIPAddr::s_addr   const [inline]
 

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

References __u32, and binaddr.

Referenced by WvIPNet::bits(), operator+(), operator-(), sockaddr(), and WvIPPortAddr::WvIPPortAddr().

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

Implements WvAddr.

Reimplemented in WvIPPortAddr, and WvIPPortAddr.

sockaddr_bin * WvIPAddr::sockaddr   const [virtual]
 

Implements WvAddr.

Reimplemented in WvIPPortAddr, and WvIPPortAddr.

Definition at line 480 of file wvaddr.cc.

References s_addr(), and sockaddr_bin.

Referenced by WvInterface::addarp(), WvInterface::setipaddr(), WvIPPortAddr::sockaddr(), and WvIPAddr().

virtual size_t WvIPAddr::sockaddr_len   const [virtual]
 

Implements WvAddr.

size_t WvIPAddr::sockaddr_len   const [virtual]
 

Implements WvAddr.

Definition at line 492 of file wvaddr.cc.

Referenced by WvInterface::addarp(), WvTCPConn::do_connect(), WvTCPConn::post_select(), WvInterface::setipaddr(), WvUDPStream::uwrite(), WvTCPListener::WvTCPListener(), and WvUDPStream::WvUDPStream().

void WvIPAddr::string_init const char    string[]
 

Reimplemented in WvIPNet, WvIPPortAddr, WvIPNet, and WvIPPortAddr.

void WvIPAddr::string_init const char    string[]
 

Reimplemented in WvIPNet, WvIPPortAddr, WvIPNet, and WvIPPortAddr.

Definition at line 366 of file wvaddr.cc.

References binaddr.

Referenced by WvIPAddr().


Member Data Documentation

unsigned char WvIPAddr::binaddr
 

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

Referenced by WvIPNet::base(), WvIPNet::is_default(), WvIPNet::is_host(), operator &(), operator^(), operator|(), operator~(), printable(), rawdata(), s_addr(), string_init(), and WvIPAddr().


The documentation for this class was generated from the following files:
Generated on Sat Aug 24 23:08:02 2002 for WvStreams by doxygen1.2.15