#include <ipacl.h>
Inheritance diagram for PIpAccessControlEntry:
Public Member Functions | |
PIpAccessControlEntry (PIPSocket::Address addr, PIPSocket::Address msk, BOOL allow) | |
PIpAccessControlEntry (const PString &description) | |
PIpAccessControlEntry & | operator= (const PString &pstr) |
PIpAccessControlEntry & | operator= (const char *cstr) |
virtual Comparison | Compare (const PObject &obj) const |
virtual void | PrintOn (ostream &strm) const |
virtual void | ReadFrom (istream &strm) |
PString | AsString () const |
BOOL | IsValid () |
BOOL | Parse (const PString &description) |
BOOL | Match (PIPSocket::Address &address) |
const PString & | GetDomain () const |
const PIPSocket::Address & | GetAddress () const |
const PIPSocket::Address & | GetMask () const |
BOOL | IsAllowed () const |
BOOL | IsHidden () const |
Protected Attributes | |
PString | domain |
PIPSocket::Address | address |
PIPSocket::Address | mask |
BOOL | allowed |
BOOL | hidden |
|
Create a new IP access control specification. See the Parse() function for more details on the format of the |
|
|
|
Convert the specification to a string, that can be processed by the Parse() function.
|
|
Compare the two objects and return their relative rank.
Reimplemented from PObject. |
|
Get the address part of entry. |
|
Get the domain part of entry. |
|
Get the mask part of entry. |
|
Get the allowed flag of entry. |
|
Get the hidden flag of entry. |
|
Check the internal fields of the specification for validity.
|
|
Check to see if the specified IP address match any of the conditions specifed in the Parse() function for this entry.
|
|
|
|
Set a new IP access control specification. See the Parse() function for more details on the format of the |
|
Parse the description string into this IP access control specification. The string may be of several forms: n.n.n.n Simple IP number, this has an implicit mask of 255.255.255.255 n.n. IP with trailing dot, assumes a mask equal to the number of specified octets eg 10.1. is equivalent to 10.1.0.0/255.255.0.0 n.n.n.n/b An IP network using b bits of mask, for example 10.1.0.0/14 is equivalent to 10.0.1.0/255.248.0.0 n.n.n.n/m.m.m.m An IP network using the specified mask hostname A specific host name, this has an implicit mask of 255.255.255.255 .domain.dom Matches an IP number whose cannonical name (found using a reverse DNS lookup) ends with the specified domain.
|
|
Output the contents of the object to the stream. This outputs the same format as the AsString() function. Reimplemented from PObject. |
|
Input the contents of the object from the stream. This expects the next space delimited entry in the stream to be as described in the Parse() function. Reimplemented from PObject. |
|
|
|
|
|
|
|
|
|
|