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

📄 httpsvc_8h-source.html

📁 pwlib开发文档
💻 HTML
📖 第 1 页 / 共 5 页
字号:
00111 <span class="comment"> * Revision 1.18  1997/11/10 12:40:05  robertj</span>00112 <span class="comment"> * Changed SustituteEquivalSequence so can override standard macros.</span>00113 <span class="comment"> *</span>00114 <span class="comment"> * Revision 1.17  1997/11/04 06:02:56  robertj</span>00115 <span class="comment"> * Allowed help gif file name to overridable in PServiceHTML, so can be in subdirectory.</span>00116 <span class="comment"> *</span>00117 <span class="comment"> * Revision 1.16  1997/10/30 10:22:35  robertj</span>00118 <span class="comment"> * Added ability to customise regisration text by application.</span>00119 <span class="comment"> *</span>00120 <span class="comment"> * Revision 1.15  1997/08/28 13:56:34  robertj</span>00121 <span class="comment"> * Fixed bug where HTTP directory was not processed for macros.</span>00122 <span class="comment"> *</span>00123 <span class="comment"> * Revision 1.13  1997/08/20 08:48:18  craigs</span>00124 <span class="comment"> * Added PHTTPServiceDirectory &amp; PHTTPServiceString</span>00125 <span class="comment"> *</span>00126 <span class="comment"> * Revision 1.12  1997/07/26 11:38:18  robertj</span>00127 <span class="comment"> * Support for overridable pages in HTTP service applications.</span>00128 <span class="comment"> *</span>00129 <span class="comment"> * Revision 1.11  1997/06/16 14:12:55  robertj</span>00130 <span class="comment"> * Changed private to protected.</span>00131 <span class="comment"> *</span>00132 <span class="comment"> * Revision 1.10  1997/06/16 13:20:14  robertj</span>00133 <span class="comment"> * Fixed bug where PHTTPThread crashes on exit.</span>00134 <span class="comment"> *</span>00135 <span class="comment"> * Revision 1.9  1997/03/02 03:42:19  robertj</span>00136 <span class="comment"> * Added error logging to standard HTTP Service HTTP Server.</span>00137 <span class="comment"> * Removed extraneous variables that set GIF file size to zero.</span>00138 <span class="comment"> *</span>00139 <span class="comment"> * Revision 1.8  1997/02/05 11:54:52  robertj</span>00140 <span class="comment"> * Added support for order form page overridiing.</span>00141 <span class="comment"> *</span>00142 <span class="comment"> * Revision 1.7  1997/01/27 10:22:33  robertj</span>00143 <span class="comment"> * Numerous changes to support OEM versions of products.</span>00144 <span class="comment"> *</span>00145 <span class="comment"> * Revision 1.6  1996/11/04 03:55:20  robertj</span>00146 <span class="comment"> * Changed to accept separate copyright and manufacturer strings.</span>00147 <span class="comment"> *</span>00148 <span class="comment"> * Revision 1.5  1996/09/14 13:09:12  robertj</span>00149 <span class="comment"> * Major upgrade:</span>00150 <span class="comment"> *   rearranged sockets to help support IPX.</span>00151 <span class="comment"> *   added indirect channel class and moved all protocols to descend from it,</span>00152 <span class="comment"> *   separating the protocol from the low level byte transport.</span>00153 <span class="comment"> *</span>00154 <span class="comment"> * Revision 1.4  1996/08/19 13:43:46  robertj</span>00155 <span class="comment"> * Fixed race condition in system restart logic.</span>00156 <span class="comment"> *</span>00157 <span class="comment"> * Revision 1.3  1996/08/08 13:36:38  robertj</span>00158 <span class="comment"> * Fixed Registation page so no longer has static link, ie can be DLLed.</span>00159 <span class="comment"> *</span>00160 <span class="comment"> * Revision 1.2  1996/06/28 13:15:39  robertj</span>00161 <span class="comment"> * Moved HTTP form resource to another compilation module.</span>00162 <span class="comment"> *</span>00163 <span class="comment"> * Revision 1.1  1996/06/13 13:33:14  robertj</span>00164 <span class="comment"> * Initial revision</span>00165 <span class="comment"> *</span>00166 <span class="comment"> */</span>00167 00168 <span class="preprocessor">#ifndef APPCOMM_H</span>00169 <span class="preprocessor"></span><span class="preprocessor">#define APPCOMM_H</span>00170 <span class="preprocessor"></span>00171 <span class="preprocessor">#include &lt;<a class="code" href="svcproc_8h.html">ptlib/svcproc.h</a>&gt;</span>00172 <span class="preprocessor">#include &lt;<a class="code" href="sockets_8h.html">ptlib/sockets.h</a>&gt;</span>00173 <span class="preprocessor">#include &lt;<a class="code" href="httpform_8h.html">ptclib/httpform.h</a>&gt;</span>00174 <span class="preprocessor">#include &lt;<a class="code" href="cypher_8h.html">ptclib/cypher.h</a>&gt;</span>00175 00176 00177 <span class="keyword">class </span><a class="code" href="classPHTTPServiceProcess.html">PHTTPServiceProcess</a>;00178 00179 00181 <a name="l00182"></a><a class="code" href="classPHTTPServiceThread.html">00182</a> <span class="keyword">class </span><a class="code" href="classPHTTPServiceThread.html">PHTTPServiceThread</a> : <span class="keyword">public</span> <a class="code" href="classPThread.html">PThread</a>00183 {00184   <a class="code" href="object_8h.html#a27">PCLASSINFO</a>(<a class="code" href="classPHTTPServiceThread.html">PHTTPServiceThread</a>, <a class="code" href="classPThread.html">PThread</a>)00185   <span class="keyword">public</span>:00186     <a class="code" href="classPHTTPServiceThread.html#a0">PHTTPServiceThread</a>(PINDEX stackSize,00187                        <a class="code" href="classPHTTPServiceProcess.html">PHTTPServiceProcess</a> &amp; app);00188     <a class="code" href="classPHTTPServiceThread.html#a1">~PHTTPServiceThread</a>();00189 00190     <span class="keywordtype">void</span> <a class="code" href="classPHTTPServiceThread.html#a2">Main</a>();00191     <span class="keywordtype">void</span> <a class="code" href="classPHTTPServiceThread.html#a3">Close</a>();00192 00193   <span class="keyword">protected</span>:<a name="l00194"></a><a class="code" href="classPHTTPServiceThread.html#n0">00194</a>     PINDEX                <a class="code" href="classPHTTPServiceThread.html#n0">myStackSize</a>;<a name="l00195"></a><a class="code" href="classPHTTPServiceThread.html#n1">00195</a>     <a class="code" href="classPHTTPServiceProcess.html">PHTTPServiceProcess</a> &amp; <a class="code" href="classPHTTPServiceThread.html#n1">process</a>;<a name="l00196"></a><a class="code" href="classPHTTPServiceThread.html#n2">00196</a>     <a class="code" href="classPTCPSocket.html">PTCPSocket</a>          * <a class="code" href="classPHTTPServiceThread.html#n2">socket</a>;00197 };00198 00199 00201 <a name="l00202"></a><a class="code" href="classPHTTPServiceProcess.html">00202</a> <span class="keyword">class </span><a class="code" href="classPHTTPServiceProcess.html">PHTTPServiceProcess</a> : <span class="keyword">public</span> <a class="code" href="classPServiceProcess.html">PServiceProcess</a>00203 {00204   <a class="code" href="object_8h.html#a27">PCLASSINFO</a>(<a class="code" href="classPHTTPServiceProcess.html">PHTTPServiceProcess</a>, <a class="code" href="classPServiceProcess.html">PServiceProcess</a>)00205 00206   <span class="keyword">public</span>:00207     <span class="keyword">enum</span> {00208       <a class="code" href="classPHTTPServiceProcess.html#s1s0">MaxSecuredKeys</a> = 1000209     };<a name="l00210"></a><a class="code" href="structPHTTPServiceProcess_1_1Info.html">00210</a>     <span class="keyword">struct </span><a class="code" href="structPHTTPServiceProcess_1_1Info.html">Info</a> {<a name="l00211"></a><a class="code" href="structPHTTPServiceProcess_1_1Info.html#m0">00211</a>       <span class="keyword">const</span> <span class="keywordtype">char</span> * <a class="code" href="structPHTTPServiceProcess_1_1Info.html#m0">productName</a>;<a name="l00212"></a><a class="code" href="structPHTTPServiceProcess_1_1Info.html#m1">00212</a>       <span class="keyword">const</span> <span class="keywordtype">char</span> * <a class="code" href="structPHTTPServiceProcess_1_1Info.html#m1">manufacturerName</a>;00213 <a name="l00214"></a><a class="code" href="structPHTTPServiceProcess_1_1Info.html#m2">00214</a>       WORD <a class="code" href="structPHTTPServiceProcess_1_1Info.html#m2">majorVersion</a>;<a name="l00215"></a><a class="code" href="structPHTTPServiceProcess_1_1Info.html#m3">00215</a>       WORD <a class="code" href="structPHTTPServiceProcess_1_1Info.html#m3">minorVersion</a>;<a name="l00216"></a><a class="code" href="structPHTTPServiceProcess_1_1Info.html#m4">00216</a>       CodeStatus <a class="code" href="structPHTTPServiceProcess_1_1Info.html#m4">buildStatus</a>;    <span class="comment">// AlphaCode, BetaCode or ReleaseCode</span><a name="l00217"></a><a class="code" href="structPHTTPServiceProcess_1_1Info.html#m5">00217</a>       WORD <a class="code" href="structPHTTPServiceProcess_1_1Info.html#m5">buildNumber</a>;<a name="l00218"></a><a class="code" href="structPHTTPServiceProcess_1_1Info.html#m6">00218</a>       <span class="keyword">const</span> <span class="keywordtype">char</span> * <a class="code" href="structPHTTPServiceProcess_1_1Info.html#m6">compilationDate</a>;00219 <a name="l00220"></a><a class="code" href="structPHTTPServiceProcess_1_1Info.html#m7">00220</a>       <a class="code" href="structPTEACypher_1_1Key.html">PTEACypher::Key</a> <a class="code" href="structPHTTPServiceProcess_1_1Info.html#m7">productKey</a>;  <span class="comment">// Poduct key for registration</span><a name="l00221"></a><a class="code" href="structPHTTPServiceProcess_1_1Info.html#m8">00221</a>       <span class="keyword">const</span> <span class="keywordtype">char</span> * <a class="code" href="structPHTTPServiceProcess_1_1Info.html#m8">securedKeys</a>[MaxSecuredKeys]; <span class="comment">// Product secured keys for registration</span><a name="l00222"></a><a class="code" href="structPHTTPServiceProcess_1_1Info.html#m9">00222</a>       PINDEX <a class="code" href="structPHTTPServiceProcess_1_1Info.html#m9">securedKeyCount</a>;00223 <a name="l00224"></a><a class="code" href="structPHTTPServiceProcess_1_1Info.html#m10">00224</a>       <a class="code" href="structPTEACypher_1_1Key.html">PTEACypher::Key</a> <a class="code" href="structPHTTPServiceProcess_1_1Info.html#m10">signatureKey</a>;   <span class="comment">// Signature key for encryption of HTML files</span>00225 <a name="l00226"></a><a class="code" href="structPHTTPServiceProcess_1_1Info.html#m11">00226</a>       <span class="keyword">const</span> <span class="keywordtype">char</span> * <a class="code" href="structPHTTPServiceProcess_1_1Info.html#m11">manufHomePage</a>; <span class="comment">// WWW address of manufacturers home page</span><a name="l00227"></a><a class="code" href="structPHTTPServiceProcess_1_1Info.html#m12">00227</a>       <span class="keyword">const</span> <span class="keywordtype">char</span> * <a class="code" href="structPHTTPServiceProcess_1_1Info.html#m12">email</a>;         <span class="comment">// contact email for manufacturer</span><a name="l00228"></a><a class="code" href="structPHTTPServiceProcess_1_1Info.html#m13">00228</a>       <span class="keyword">const</span> <span class="keywordtype">char</span> * <a class="code" href="structPHTTPServiceProcess_1_1Info.html#m13">productHTML</a>;   <span class="comment">// HTML for the product name, if NULL defaults to</span>00229                                   <span class="comment">//   the productName variable.</span><a name="l00230"></a><a class="code" href="structPHTTPServiceProcess_1_1Info.html#m14">00230</a>       <span class="keyword">const</span> <span class="keywordtype">char</span> * <a class="code" href="structPHTTPServiceProcess_1_1Info.html#m14">gifHTML</a>;       <span class="comment">// HTML to show GIF image in page headers, if NULL</span>

⌨️ 快捷键说明

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