#include <address.h>
Public Member Functions | |
| in_addr | getNetwork (void) const |
| Get network address associated with this cidr. | |
| in_addr | getNetmask (void) const |
| Get network mask associated with this cidr. | |
| in_addr | getBroadcast (void) const |
| Compute the broadcast address associated with this cidr. | |
| void | set (const char *cidr) |
| Set the cidr from a full or partial hostname, or from an address/mask, or a host/bits specification. | |
| IPV4Cidr (const char *cidr) | |
| Construct a new cidr from a string. | |
| IPV4Cidr () | |
| Construct an empty cidr. | |
| IPV4Cidr (IPV4Cidr &) | |
| Construct a copy of a cidr. | |
| bool | isMember (struct sockaddr *saddr) |
| See if a socket address is a member of this cidr's network. | |
| bool | isMember (struct in_addr &inaddr) |
| See if a low level address object is a member of this cidr's net. | |
Protected Member Functions | |
| unsigned | getMask (const char *cp) |
Protected Attributes | |
| in_addr netmask | network |
|
|
Construct a new cidr from a string.
|
|
|
Construct an empty cidr.
|
|
|
Construct a copy of a cidr.
|
|
|
Compute the broadcast address associated with this cidr.
|
|
|
|
|
|
Get network mask associated with this cidr.
|
|
|
Get network address associated with this cidr.
|
|
|
See if a low level address object is a member of this cidr's net.
|
|
|
See if a socket address is a member of this cidr's network.
|
|
|
Set the cidr from a full or partial hostname, or from an address/mask, or a host/bits specification.
|
|
|
|
1.4.6