214 const char * daemonName = NULL
261 #endif // P_CONFIG_FILE 351 #endif // PTLIB_IPACL_H void SetDefaultAllowance(PBoolean defAllow)
Set the default state for allowed access if the list is empty.
Definition: ipacl.h:340
virtual void ReadFrom(istream &strm)
Input the contents of the object from the stream.
#define PCLASSINFO(cls, par)
Declare all the standard PTLib class information.
Definition: object.h:1049
PBoolean IsAllowed() const
Get the allowed flag of entry.
Definition: ipacl.h:157
PBoolean allowed
Definition: ipacl.h:167
PIPSocket::Address address
Definition: ipacl.h:165
virtual Comparison Compare(const PObject &obj) const
Compare the two objects and return their relative rank.
PIPSocket::Address mask
Definition: ipacl.h:166
A class representing a configuration for the application.
Definition: config.h:67
Comparison
Result of the comparison operation performed by the Compare() function.
Definition: object.h:1184
PBoolean Parse(const PString &description)
Parse the description string into this IP access control specification.
virtual void PrintOn(ostream &strm) const
Output the contents of the object to the stream.
const PIPSocket::Address & GetAddress() const
Get the address part of entry.
Definition: ipacl.h:149
BOOL PBoolean
Definition: object.h:102
PBoolean IsHidden() const
Get the hidden flag of entry.
Definition: ipacl.h:161
PString AsString() const
Convert the specification to a string, that can be processed by the Parse() function.
The character string class.
Definition: pstring.h:108
A socket that uses the TCP transport on the Internet Protocol.
Definition: tcpsock.h:44
This class is a single IP access control specification.
Definition: ipacl.h:40
This class is a list of IP address mask specifications used to validate if an address may or may not ...
Definition: ipacl.h:187
PIpAccessControlEntry(PIPSocket::Address addr, PIPSocket::Address msk, PBoolean allow)
Create a new IP access control specification.
const PIPSocket::Address & GetMask() const
Get the mask part of entry.
Definition: ipacl.h:153
A class describing an IP address.
Definition: ipsock.h:75
PString domain
Definition: ipacl.h:164
PBoolean defaultAllowance
Definition: ipacl.h:347
PBoolean Match(PIPSocket::Address &address)
Check to see if the specified IP address match any of the conditions specifed in the Parse() function...
PBoolean IsValid()
Check the internal fields of the specification for validity.
const PString & GetDomain() const
Get the domain part of entry.
Definition: ipacl.h:145
Ultimate parent class for all objects in the class library.
Definition: object.h:1118
PIpAccessControlEntry & operator=(const PString &pstr)
Set a new IP access control specification.
PBoolean GetDefaultAllowance() const
Get the default state for allowed access if the list is empty.
Definition: ipacl.h:336
PBoolean hidden
Definition: ipacl.h:168
PSORTED_LIST(PIpAccessControlList_base, PIpAccessControlEntry)