|
EpcTools
An event based multi-threaded C++ development framework.
|
Represents an IP address with mask. More...
#include <eip.h>
Public Member Functions | |
| EIpAddress () | |
| Default class constructor. More... | |
| EIpAddress (cpStr addr) | |
| Class constructor. More... | |
| EIpAddress (const std::string &addr) | |
| Class constructor. More... | |
| EIpAddress (const EIpAddress &ipaddr) | |
| Copy constructor. More... | |
| EIpAddress (const struct sockaddr_storage &saddr) | |
| Class constructor. More... | |
| EIpAddress & | operator= (cpStr addr) |
| Assignment operator. More... | |
| EIpAddress & | operator= (const EIpAddress &ipaddr) |
| Assignment operator. More... | |
| EIpAddress & | operator= (const struct sockaddr_storage &saddr) |
| Assignment operator. More... | |
| EIpAddress & | operator= (const in_addr &addr) |
| Assignment operator. More... | |
| EIpAddress & | operator= (const in6_addr &addr) |
| Assignment operator. More... | |
| Bool | operator== (const EIpAddress &ip) const |
| Assignment operator. More... | |
| std::string | address (Bool includeMask=True) const |
| Retrieves a string object that is the string representation of the IP address. More... | |
| const in_addr & | ipv4Address () const |
| Returns a reference to the in_addr structure that represents an IPv4 address. More... | |
| const in6_addr & | ipv6Address () const |
| Returns a reference to the in6_addr structure that represents an IPv6 address. More... | |
| const sa_family_t | family () const |
| Returns the address family associated with this address object. More... | |
| UChar | maskWidth () const |
| Returns the mask width (number of signficant bits) for this address object. More... | |
| EIpAddress & | setFamily (const sa_family_t family) |
| Assigns the address family for this address object. More... | |
| EIpAddress & | setMaskWidth (UChar maskWidth) |
| Assigns the mask width, in number of bits, for this address object. More... | |
| EIpAddress & | setAny (sa_family_t family) |
| Sets the IP address as "any" for the specified address family. More... | |
| Bool | isAny () const |
| determines if this IP address represents "any". More... | |
Represents an IP address with mask.
|
inline |
Default class constructor.
|
inline |
Class constructor.
| addr | a NULL terminated string representing the IP address. |
|
inline |
Class constructor.
| addr | a string object representing the IP address. |
|
inline |
Copy constructor.
| ipaddr | the EIpAddress object to copy. |
|
inline |
Class constructor.
| saddr | a reference to a sockaddr_storage used to initialize the object. |
|
inline |
Retrieves a string object that is the string representation of the IP address.
| includeMask | if TRUE, the mask will be appended to the IP address. |
|
inline |
Returns the address family associated with this address object.
|
inline |
Returns a reference to the in_addr structure that represents an IPv4 address.
|
inline |
Returns a reference to the in6_addr structure that represents an IPv6 address.
|
inline |
determines if this IP address represents "any".
|
inline |
Returns the mask width (number of signficant bits) for this address object.
|
inline |
Assignment operator.
| addr | a NULL terminated string representing the IP address. |
|
inline |
Assignment operator.
| ipaddr | a string object representing the IP address to assign. |
|
inline |
Assignment operator.
| saddr | a reference to a sockaddr_storage structure to assign. |
|
inline |
Assignment operator.
| addr | a reference to an in_addr structure representing an IPv4 address. |
|
inline |
Assignment operator.
| addr | a reference to an in6_addr structure representing an IPv6 address. |
|
inline |
Assignment operator.
| ip | a reference to the EIpAddress object to copy. |
|
inline |
Sets the IP address as "any" for the specified address family.
| family | the address family. |
|
inline |
Assigns the address family for this address object.
| family | the new address family. |
|
inline |
Assigns the mask width, in number of bits, for this address object.
| maskWidth | the number of signficant address bits.. |
| in_addr EIpAddress::ipv4 |
| in6_addr EIpAddress::ipv6 |
1.8.11