class Address: public in_addr

A class describing an IP address

Inheritance:


Public Methods

[more]PString AsString () const
Format an address as a string
[more] operator PString () const
Format an address as a string
[more] operator DWORD () const
Return address in network order
[more]BYTE Byte1 () const
Return first byte of IP address
[more]BYTE Byte2 () const
Return second byte of IP address
[more]BYTE Byte3 () const
Return third byte of IP address
[more]BYTE Byte4 () const
Return fourth byte of IP address
[more]BYTE operator[] (PINDEX idx) const
return specified byte of IP address
[more]friend ostream& operator<< (ostream & s, const Address & a)
output address as a string to the specified string
[more]friend istream& operator>> (istream & s, Address & a)
output address as a string to the specified string

Public

[more] Address constructors


Documentation

A class describing an IP address
o Address constructors

o Address()
Create an IP address with the default address

o Address(const PString & dotNotation)
Create an IP address with the default address

o Address(BYTE b1, BYTE b2, BYTE b3, BYTE b4)
Create an IP address from four byte values

o Address(DWORD dw)
Create an IP address from a four byte value in network byte order

o Address(const in_addr & addr)
Create an IP address from an in_addr structure

o Address(const Address & addr)
Copy an address from another Address

oAddress& operator=(const in_addr & addr)
Copy an address from another Address

oAddress& operator=(const Address & addr)
Copy an address from another Address

oAddress& operator=(const PString & dotNotation)
Copy an address from a string

oAddress& operator=(DWORD dw)
Copy an address from a four byte value in network order

oPString AsString() const
Format an address as a string

o operator PString() const
Format an address as a string

o operator DWORD() const
Return address in network order

oBYTE Byte1() const
Return first byte of IP address

oBYTE Byte2() const
Return second byte of IP address

oBYTE Byte3() const
Return third byte of IP address

oBYTE Byte4() const
Return fourth byte of IP address

oBYTE operator[](PINDEX idx) const
return specified byte of IP address

ofriend ostream& operator<<(ostream & s, const Address & a)
output address as a string to the specified string

ofriend istream& operator>>(istream & s, Address & a)
output address as a string to the specified string


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.