⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ipacl_8h-source.html

📁 pwlib开发文档
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>ipacl.h Source File</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.2.18 --><center><a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="namespaces.html">Namespace List</a> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="annotated.html">Compound List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; <a class="qindex" href="globals.html">File Members</a> &nbsp; </center><hr><h1>ipacl.h</h1><a href="ipacl_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <span class="comment">/*</span>00002 <span class="comment"> * ipacl.h</span>00003 <span class="comment"> *</span>00004 <span class="comment"> * IP Access Control Lists</span>00005 <span class="comment"> *</span>00006 <span class="comment"> * Portable Windows Library</span>00007 <span class="comment"> *</span>00008 <span class="comment"> * Copyright (c) 1998-2002 Equivalence Pty. Ltd.</span>00009 <span class="comment"> *</span>00010 <span class="comment"> * The contents of this file are subject to the Mozilla Public License</span>00011 <span class="comment"> * Version 1.0 (the "License"); you may not use this file except in</span>00012 <span class="comment"> * compliance with the License. You may obtain a copy of the License at</span>00013 <span class="comment"> * http://www.mozilla.org/MPL/</span>00014 <span class="comment"> *</span>00015 <span class="comment"> * Software distributed under the License is distributed on an "AS IS"</span>00016 <span class="comment"> * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See</span>00017 <span class="comment"> * the License for the specific language governing rights and limitations</span>00018 <span class="comment"> * under the License.</span>00019 <span class="comment"> *</span>00020 <span class="comment"> * The Original Code is Portable Windows Library.</span>00021 <span class="comment"> *</span>00022 <span class="comment"> * The Initial Developer of the Original Code is Equivalence Pty. Ltd.</span>00023 <span class="comment"> *</span>00024 <span class="comment"> * Contributor(s): ______________________________________.</span>00025 <span class="comment"> *</span>00026 <span class="comment"> * $Log: ipacl.h,v $</span>00027 <span class="comment"> * Revision 1.9  2002/11/06 22:47:24  robertj</span>00028 <span class="comment"> * Fixed header comment (copyright etc)</span>00029 <span class="comment"> *</span>00030 <span class="comment"> * Revision 1.8  2002/07/17 02:54:24  robertj</span>00031 <span class="comment"> * Added access functions for member variables.</span>00032 <span class="comment"> *</span>00033 <span class="comment"> * Revision 1.7  2002/06/19 05:43:17  robertj</span>00034 <span class="comment"> * Added missing return for getting default allowance flag</span>00035 <span class="comment"> *</span>00036 <span class="comment"> * Revision 1.6  2002/06/19 04:02:58  robertj</span>00037 <span class="comment"> * Added default allowance boolean if ACL empty.</span>00038 <span class="comment"> * Added ability to override the creation of ACL entry objects with descendents</span>00039 <span class="comment"> *   so an application can add information/functionality to each entry.</span>00040 <span class="comment"> *</span>00041 <span class="comment"> * Revision 1.5  2002/02/13 02:07:14  robertj</span>00042 <span class="comment"> * Added const to IsAllowed() function</span>00043 <span class="comment"> *</span>00044 <span class="comment"> * Revision 1.4  1999/03/09 08:01:46  robertj</span>00045 <span class="comment"> * Changed comments for doc++ support (more to come).</span>00046 <span class="comment"> *</span>00047 <span class="comment"> * Revision 1.3  1999/02/25 05:05:15  robertj</span>00048 <span class="comment"> * Added missing test for hidden entries not to be written to config file</span>00049 <span class="comment"> *</span>00050 <span class="comment"> * Revision 1.2  1999/02/08 08:05:39  robertj</span>00051 <span class="comment"> * Changed semantics of IP access control list for empty list.</span>00052 <span class="comment"> *</span>00053 <span class="comment"> * Revision 1.1  1999/01/31 00:59:26  robertj</span>00054 <span class="comment"> * Added IP Access Control List class to PTLib Components</span>00055 <span class="comment"> *</span>00056 <span class="comment"> */</span>00057 00058 <span class="preprocessor">#ifndef _IPACL_H</span>00059 <span class="preprocessor"></span><span class="preprocessor">#define _IPACL_H</span>00060 <span class="preprocessor"></span>00061 00062 <span class="preprocessor">#include &lt;<a class="code" href="sockets_8h.html">ptlib/sockets.h</a>&gt;</span>00063 00064 <a name="l00067"></a><a class="code" href="classPIpAccessControlEntry.html">00067</a> <span class="keyword">class </span><a class="code" href="classPIpAccessControlEntry.html">PIpAccessControlEntry</a> : <span class="keyword">public</span> <a class="code" href="classPObject.html">PObject</a>00068 {00069   <a class="code" href="object_8h.html#a27">PCLASSINFO</a>(<a class="code" href="classPIpAccessControlEntry.html">PIpAccessControlEntry</a>, <a class="code" href="classPObject.html">PObject</a>)00070 00071   <span class="keyword">public</span>:00076     <a class="code" href="classPIpAccessControlEntry.html#a0">PIpAccessControlEntry</a>(00077       <a class="code" href="classPIPSocket_1_1Address.html">PIPSocket::Address</a> addr,00078       <a class="code" href="classPIPSocket_1_1Address.html">PIPSocket::Address</a> msk,00079       BOOL allow00080     );00081     <a class="code" href="classPIpAccessControlEntry.html#a0">PIpAccessControlEntry</a>(00082       <span class="keyword">const</span> <a class="code" href="classPString.html">PString</a> &amp; description00083     );00084 00089     <a class="code" href="classPIpAccessControlEntry.html">PIpAccessControlEntry</a> &amp; <a class="code" href="classPIpAccessControlEntry.html#a2">operator=</a>(00090       <span class="keyword">const</span> <a class="code" href="classPString.html">PString</a> &amp; pstr00091     );00092     <a class="code" href="classPIpAccessControlEntry.html">PIpAccessControlEntry</a> &amp; <a class="code" href="classPIpAccessControlEntry.html#a2">operator=</a>(00093       <span class="keyword">const</span> <span class="keywordtype">char</span> * cstr00094     );00095 00102     <span class="keyword">virtual</span> <a class="code" href="classPObject.html#z199_0">Comparison</a> <a class="code" href="classPIpAccessControlEntry.html#a4">Compare</a>(00103       <span class="keyword">const</span> <a class="code" href="classPObject.html">PObject</a> &amp; obj   <span class="comment">// Object to compare against.</span>00104     ) <span class="keyword">const</span>;00105 00109     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classPIpAccessControlEntry.html#a5">PrintOn</a>(00110       ostream &amp;strm   <span class="comment">// Stream to print the object into.</span>00111     ) <span class="keyword">const</span>;00112 00117     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classPIpAccessControlEntry.html#a6">ReadFrom</a>(00118       istream &amp;strm   <span class="comment">// Stream to read the objects contents from.</span>00119     );00120 00127     <a class="code" href="classPString.html">PString</a> <a class="code" href="classPIpAccessControlEntry.html#a7">AsString</a>() <span class="keyword">const</span>;00128 00134     BOOL <a class="code" href="classPIpAccessControlEntry.html#a8">IsValid</a>();00135 00155     BOOL <a class="code" href="classPIpAccessControlEntry.html#a9">Parse</a>(00156       <span class="keyword">const</span> <a class="code" href="classPString.html">PString</a> &amp; description   <span class="comment">// Description of the specification</span>00157     );00158 00159 00166     BOOL <a class="code" href="classPIpAccessControlEntry.html#a10">Match</a>(00167       <a class="code" href="classPIPSocket_1_1Address.html">PIPSocket::Address</a> &amp; <a class="code" href="classPIpAccessControlEntry.html#n1">address</a>    <span class="comment">// Address to search for</span>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -