📄 classpipaccesscontrollist.html
字号:
<td><p>Test the address/connection for if it is allowed within this access control list. If the <code>socket</code> form is used the peer address of the connection is tested.<p>If the list is empty then TRUE is returned. If the list is not empty, but the IP address does not match any entries in the list, then FALSE is returned. If a match is made then the allow state of that entry is returned.<p><dl compact><dt><b>Returns: </b></dt><dd> TRUE if the remote host address is allowed. </dl> </td> </tr></table><a name="a3" doxytag="PIpAccessControlList::Load"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> BOOL PIpAccessControlList::Load </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="classPConfig.html">PConfig</a> & </td> <td class="mdname" nowrap> <em>cfg</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>const <a class="el" href="classPString.html">PString</a> & </td> <td class="mdname" nowrap> <em>baseName</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Load entries in the list from the configuration file specified, using the base name for the array of configuration file values. The format of entries in the configuration file are suitable for use with the <a class="el" href="classPHTTPConfig.html">PHTTPConfig</a> classes.<p><dl compact><dt><b>Returns: </b></dt><dd> TRUE if all the entries in the file were added, if any failed then FALSE is returned. </dl> </td> </tr></table><a name="a2" doxytag="PIpAccessControlList::Load"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> BOOL PIpAccessControlList::Load </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="classPConfig.html">PConfig</a> & </td> <td class="mdname1" valign="top" nowrap> <em>cfg</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Load entries in the list from the configuration file specified. This is equivalent to Load(cfg, "IP Access Control List").<p><dl compact><dt><b>Returns: </b></dt><dd> TRUE if all the entries in the file were added, if any failed then FALSE is returned. </dl> </td> </tr></table><a name="a1" doxytag="PIpAccessControlList::LoadHostsAccess"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> BOOL PIpAccessControlList::LoadHostsAccess </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const char * </td> <td class="mdname1" valign="top" nowrap> <em>daemonName</em> = NULL </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Load the system wide files commonly use under Linux (hosts.allow and hosts.deny file) for IP access. See the Linux man entries on these files for more information. Note, these files will be loaded regardless of the actual platform used. The directory returned by the <a class="el" href="classPProcess.html#z229_4">PProcess::GetOSConfigDir()</a> function is searched for the files.<p>The <code>daemonName</code> parameter is used as the search argument in the hosts.allow/hosts.deny file. If this is NULL then the <a class="el" href="classPProcess.html#z227_4">PProcess::GetName()</a> function is used.<p><dl compact><dt><b>Returns: </b></dt><dd> TRUE if all the entries in the file were added, if any failed then FALSE is returned. </dl> </td> </tr></table><a name="a10" doxytag="PIpAccessControlList::Remove"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> BOOL PIpAccessControlList::Remove </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="classPIPSocket_1_1Address.html">PIPSocket::Address</a> </td> <td class="mdname" nowrap> <em>address</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap><a class="el" href="classPIPSocket_1_1Address.html">PIPSocket::Address</a> </td> <td class="mdname" nowrap> <em>mask</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p> </td> </tr></table><a name="a9" doxytag="PIpAccessControlList::Remove"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> BOOL PIpAccessControlList::Remove </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const <a class="el" href="classPString.html">PString</a> & </td> <td class="mdname1" valign="top" nowrap> <em>description</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Remove the specified entry into the list. See the <a class="el" href="classPIpAccessControlEntry.html">PIpAccessControlEntry</a> class for more details on the format of the <code>description</code> field.<p><dl compact><dt><b>Returns: </b></dt><dd> TRUE if the entries was successfully removed. </dl> </td> </tr></table><a name="a5" doxytag="PIpAccessControlList::Save"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> void PIpAccessControlList::Save </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="classPConfig.html">PConfig</a> & </td> <td class="mdname" nowrap> <em>cfg</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>const <a class="el" href="classPString.html">PString</a> & </td> <td class="mdname" nowrap> <em>baseName</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Save entries in the list to the configuration file specified, using the base name for the array of configuration file values. The format of entries in the configuration file are suitable for use with the <a class="el" href="classPHTTPConfig.html">PHTTPConfig</a> classes. </td> </tr></table><a name="a4" doxytag="PIpAccessControlList::Save"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> void PIpAccessControlList::Save </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="classPConfig.html">PConfig</a> & </td> <td class="mdname1" valign="top" nowrap> <em>cfg</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Save entries in the list to the configuration file specified. This is equivalent to Save(cfg, "IP Access Control List"). </td> </tr></table><a name="a16" doxytag="PIpAccessControlList::SetDefaultAllowance"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> void PIpAccessControlList::SetDefaultAllowance </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">BOOL </td> <td class="mdname1" valign="top" nowrap> <em>defAllow</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap><code> [inline]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Set the default state for allowed access if the list is empty. </td> </tr></table><hr><h2>Member Data Documentation</h2><a name="n0" doxytag="PIpAccessControlList::defaultAllowance"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> BOOL PIpAccessControlList::defaultAllowance<code> [protected]</code> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p> </td> </tr></table><hr>The documentation for this class was generated from the following file:<ul><li><a class="el" href="ipacl_8h-source.html">ipacl.h</a></ul><hr><address style="align: right;"><small>Generated on Wed Sep 29 22:44:17 2004 for PWLib by<a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border=0 width=110 height=53></a>1.2.18 </small></address></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -