#include <wvaddr.h>
Inherits WvAddr.
Inherited by WvIPNet, and WvIPPortAddr.
Collaboration diagram for WvIPAddr:
We don't support automatic name lookups yet, but this will be the place to do it when support is added.
Definition at line 243 of file wvaddr.h.
Public Member Functions | |
WvIPAddr (const unsigned char _binaddr[4]) | |
WvIPAddr (const __u32 _binaddr=0) | |
WvIPAddr (const char string[]) | |
WvIPAddr (WvStringParm string) | |
void | string_init (const char string[]) |
WvIPAddr (const struct sockaddr *addr) | |
WvIPAddr (const WvIPAddr &_addr) | |
virtual | ~WvIPAddr () |
virtual bool | comparator (const WvAddr *a2, bool first_pass=true) const |
virtual const char * | type () const |
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 | addr () const |
bool | is_zero () 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 |
operator WvString () const | |
virtual bool | isbroadcast () const |
virtual unsigned | WvHash () const |
bool | operator== (const WvAddr &a2) const |
bool | operator!= (const WvAddr &a2) const |
Static Public Member Functions | |
WvAddr * | gen (struct sockaddr *addr) |
Public Attributes | |
unsigned char | binaddr [4] |
Protected Member Functions | |
virtual WvString | printable () const |
|
Definition at line 250 of file wvaddr.h. References binaddr. Referenced by WvIPNet::normalize(), operator &(), operator+(), operator-(), operator^(), operator|(), operator~(), WvIPNet::string_init(), and WvIPNet::WvIPNet(). |
|
Definition at line 252 of file wvaddr.h. References binaddr. |
|
Definition at line 254 of file wvaddr.h. References string_init(). |
|
Definition at line 256 of file wvaddr.h. References string_init(), and WvStringParm. |
|
Definition at line 259 of file wvaddr.h. References binaddr. |
|
Definition at line 262 of file wvaddr.h. References binaddr. |
|
|
|
Definition at line 277 of file wvaddr.h. References __u32. Referenced by WvIPNet::bits(), WvResolver::findaddr(), is_zero(), operator+(), operator-(), and sockaddr(). |
|
Reimplemented from WvAddr. Reimplemented in WvIPNet, and WvIPPortAddr. Definition at line 386 of file wvaddr.cc. References binaddr, rawdata(), rawdata_len(), and WvAddr::type(). Referenced by WvIPPortAddr::comparator(), and WvIPNet::comparator(). |
|
Implements WvAddr. |
|
Definition at line 89 of file wvaddr.cc. References WvEncap::cap, and WvAddr::encap(). Referenced by WvInterface::hwaddr(). |
|
Definition at line 280 of file wvaddr.h. References addr(). |
|
Reimplemented in WvEtherAddr. |
|
Definition at line 421 of file wvaddr.cc. References binaddr, and WvIPAddr(). |
|
|
|
|
|
Definition at line 467 of file wvaddr.cc. References __u32, addr(), and WvIPAddr(). |
|
Definition at line 474 of file wvaddr.cc. References __u32, addr(), and WvIPAddr(). |
|
|
|
Definition at line 443 of file wvaddr.cc. References binaddr, and WvIPAddr(). |
|
Definition at line 432 of file wvaddr.cc. References binaddr, and WvIPAddr(). |
|
Definition at line 454 of file wvaddr.cc. References binaddr, and WvIPAddr(). |
|
Implements WvAddr. Reimplemented in WvIPNet, and WvIPPortAddr. Definition at line 413 of file wvaddr.cc. References binaddr. Referenced by WvIPNet::printable(). |
|
Reimplemented from WvAddr. Definition at line 487 of file wvaddr.cc. Referenced by comparator(). |
|
Reimplemented from WvAddr. Definition at line 493 of file wvaddr.cc. Referenced by comparator(). |
|
Implements WvAddr. Reimplemented in WvIPPortAddr. Definition at line 502 of file wvaddr.cc. References addr(), and sockaddr_bin. Referenced by WvInterface::addarp(), WvInterface::setipaddr(), WvIPPortAddr::sockaddr(), WvIPRawStream::uwrite(), and WvIPRawStream::WvIPRawStream(). |
|
Implements WvAddr. Definition at line 514 of file wvaddr.cc. Referenced by WvInterface::addarp(), WvTCPConn::do_connect(), WvInterface::setipaddr(), WvUDPStream::uwrite(), WvIPRawStream::uwrite(), WvIPRawStream::WvIPRawStream(), WvTCPListener::WvTCPListener(), and WvUDPStream::WvUDPStream(). |
|
Reimplemented in WvIPNet, and WvIPPortAddr. Definition at line 364 of file wvaddr.cc. References binaddr. Referenced by WvIPAddr(). |
|
Reimplemented from WvAddr. Reimplemented in WvIPNet, and WvIPPortAddr. |
|
Reimplemented in WvIPNet, and WvIPPortAddr. Definition at line 132 of file wvaddr.cc. References WvAddr::rawdata(), and WvAddr::rawdata_len(). Referenced by WvIPPortAddr::WvHash(), WvIPNet::WvHash(), and WvHash(). |
|
Definition at line 248 of file wvaddr.h. Referenced by comparator(), WvIPNet::is_default(), WvIPNet::is_host(), operator &(), operator^(), operator|(), operator~(), printable(), string_init(), and WvIPAddr(). |