WvStreams
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | List of all members
WvIPPortAddr Class Reference

An IP+Port address also includes a port number, with the resulting form www.xxx.yyy.zzz:pppp. More...

#include <wvaddr.h>

Inheritance diagram for WvIPPortAddr:
Inheritance graph
[legend]

Public Member Functions

 WvIPPortAddr (const unsigned char _ipaddr[4], uint16_t _port=0)
 
 WvIPPortAddr (const WvIPAddr &_ipaddr, uint16_t _port=0)
 
 WvIPPortAddr (const char string[])
 
 WvIPPortAddr (WvStringParm string)
 
void string_init (const char string[])
 
 WvIPPortAddr (uint16_t _port)
 
 WvIPPortAddr (const char string[], uint16_t _port)
 
 WvIPPortAddr (struct sockaddr_in *sin)
 
virtual bool comparator (const WvAddr *a2, bool first_pass=true) const
 
virtual const char * type () const
 
virtual struct sockaddr * sockaddr () const
 
virtual unsigned WvHash () 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 size_t sockaddr_len () const
 
virtual const unsigned char * rawdata () const
 
virtual size_t rawdata_len () const
 
 operator WvString () const
 
virtual bool isbroadcast () const
 
bool operator== (const WvAddr &a2) const
 
bool operator!= (const WvAddr &a2) const
 

Static Public Member Functions

static WvAddrgen (struct sockaddr *addr)
 

Public Attributes

uint16_t port
 
unsigned char binaddr [4]
 

Protected Member Functions

virtual WvString printable () const
 

Detailed Description

An IP+Port address also includes a port number, with the resulting form www.xxx.yyy.zzz:pppp.

Note that the rawdata() function is inherited from WvIPAddr, so it does not include the port number in the raw data.

Definition at line 393 of file wvaddr.h.


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