WvStreams
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions
WvIPAddr Class Reference

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

#include <wvaddr.h>

Inheritance diagram for WvIPAddr:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 WvIPAddr (const unsigned char *_binaddr)
 WvIPAddr (const uint32_t _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 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
uint32_t 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

static WvAddrgen (struct sockaddr *addr)

Public Attributes

unsigned char binaddr [4]

Protected Member Functions

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 249 of file wvaddr.h.


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