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

📄 remconn_8h-source.html

📁 pwlib开发文档
💻 HTML
📖 第 1 页 / 共 2 页
字号:
00121     <a class="code" href="classPRemoteConnection.html#z307_2">~PRemoteConnection</a>();00123 00129     <span class="keyword">virtual</span> <a class="code" href="classPObject.html#z199_0">Comparison</a> <a class="code" href="classPRemoteConnection.html#z309_0">Compare</a>(00130       <span class="keyword">const</span> <a class="code" href="classPObject.html">PObject</a> &amp; obj     00131     ) <span class="keyword">const</span>;00132 00136     <span class="keyword">virtual</span> PINDEX <a class="code" href="classPRemoteConnection.html#z309_1">HashFunction</a>() <span class="keyword">const</span>;00138 00143     BOOL <a class="code" href="classPRemoteConnection.html#z311_0">Open</a>(00144       BOOL existing = FALSE  00145     );00146 00149     BOOL <a class="code" href="classPRemoteConnection.html#z311_0">Open</a>(00150       <span class="keyword">const</span> <a class="code" href="classPString.html">PString</a> &amp; name,   00151       BOOL existing = FALSE   00152     );00153 00156     BOOL <a class="code" href="classPRemoteConnection.html#z311_0">Open</a>(00157       <span class="keyword">const</span> <a class="code" href="classPString.html">PString</a> &amp; name,     00158       <span class="keyword">const</span> <a class="code" href="classPString.html">PString</a> &amp; username, 00159       <span class="keyword">const</span> <a class="code" href="classPString.html">PString</a> &amp; <a class="code" href="classPRemoteConnection.html#n2">password</a>, 00160       BOOL existing = FALSE     00161     );00162 00167     <span class="keywordtype">void</span> <a class="code" href="classPRemoteConnection.html#z311_3">Close</a>();00169 00172 <a name="l00173"></a><a class="code" href="classPRemoteConnection.html#z313_0">00173</a>     <span class="keyword">enum</span> <a class="code" href="classPRemoteConnection.html#z313_0">Status</a> {00175       <a class="code" href="classPRemoteConnection.html#z313_0s0">Idle</a>,00177       <a class="code" href="classPRemoteConnection.html#z313_0s1">Connected</a>,00179       <a class="code" href="classPRemoteConnection.html#z313_0s2">InProgress</a>,00181       <a class="code" href="classPRemoteConnection.html#z313_0s3">LineBusy</a>,00183       <a class="code" href="classPRemoteConnection.html#z313_0s4">NoDialTone</a>,00185       <a class="code" href="classPRemoteConnection.html#z313_0s5">NoAnswer</a>,00187       <a class="code" href="classPRemoteConnection.html#z313_0s6">PortInUse</a>,00189       <a class="code" href="classPRemoteConnection.html#z313_0s7">NoNameOrNumber</a>,00191       <a class="code" href="classPRemoteConnection.html#z313_0s8">AccessDenied</a>,00193       <a class="code" href="classPRemoteConnection.html#z313_0s9">HardwareFailure</a>,00195       <a class="code" href="classPRemoteConnection.html#z313_0s10">GeneralFailure</a>,00197       <a class="code" href="classPRemoteConnection.html#z313_0s11">ConnectionLost</a>,00199       <a class="code" href="classPRemoteConnection.html#z313_0s12">NotInstalled</a>,00200       <a class="code" href="classPRemoteConnection.html#z313_0s13">NumStatuses</a>00201     };00202 00208     <a class="code" href="classPRemoteConnection.html#z313_0">Status</a> <a class="code" href="classPRemoteConnection.html#z313_1">GetStatus</a>() <span class="keyword">const</span>;00209 <a name="l00215"></a><a class="code" href="classPRemoteConnection.html#z313_2">00215</a>     DWORD <a class="code" href="classPRemoteConnection.html#z313_2">GetErrorCode</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classPRemoteConnection.html#n3">osError</a>; }00217 <a name="l00225"></a><a class="code" href="classPRemoteConnection.html#z315_0">00225</a>     <span class="keyword">const</span> <a class="code" href="classPString.html">PString</a> &amp; <a class="code" href="classPRemoteConnection.html#z315_0">GetName</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classPRemoteConnection.html#n0">remoteName</a>; }00226 00232     <a class="code" href="classPString.html">PString</a> <a class="code" href="classPRemoteConnection.html#z315_1">GetAddress</a>();00233 00240     <span class="keyword">static</span> <a class="code" href="classPStringArray.html">PStringArray</a> <a class="code" href="classPRemoteConnection.html#z315_2">GetAvailableNames</a>();00242 00245 <a name="l00246"></a><a class="code" href="structPRemoteConnection_1_1Configuration.html">00246</a>     <span class="keyword">struct </span><a class="code" href="structPRemoteConnection_1_1Configuration.html">Configuration</a> {<a name="l00248"></a><a class="code" href="structPRemoteConnection_1_1Configuration.html#m0">00248</a>       <a class="code" href="classPString.html">PString</a> <a class="code" href="structPRemoteConnection_1_1Configuration.html#m0">device</a>;<a name="l00250"></a><a class="code" href="structPRemoteConnection_1_1Configuration.html#m1">00250</a>       <a class="code" href="classPString.html">PString</a> <a class="code" href="structPRemoteConnection_1_1Configuration.html#m1">phoneNumber</a>;<a name="l00252"></a><a class="code" href="structPRemoteConnection_1_1Configuration.html#m2">00252</a>       <a class="code" href="classPString.html">PString</a> <a class="code" href="structPRemoteConnection_1_1Configuration.html#m2">ipAddress</a>;<a name="l00254"></a><a class="code" href="structPRemoteConnection_1_1Configuration.html#m3">00254</a>       <a class="code" href="classPString.html">PString</a> <a class="code" href="structPRemoteConnection_1_1Configuration.html#m3">dnsAddress</a>;<a name="l00256"></a><a class="code" href="structPRemoteConnection_1_1Configuration.html#m4">00256</a>       <a class="code" href="classPString.html">PString</a> <a class="code" href="structPRemoteConnection_1_1Configuration.html#m4">script</a>;<a name="l00258"></a><a class="code" href="structPRemoteConnection_1_1Configuration.html#m5">00258</a>       PINDEX  <a class="code" href="structPRemoteConnection_1_1Configuration.html#m5">subEntries</a>;<a name="l00260"></a><a class="code" href="structPRemoteConnection_1_1Configuration.html#m6">00260</a>       BOOL    <a class="code" href="structPRemoteConnection_1_1Configuration.html#m6">dialAllSubEntries</a>;00261     };00262 00271     <a class="code" href="classPRemoteConnection.html#z313_0">Status</a> <a class="code" href="classPRemoteConnection.html#z317_0">GetConfiguration</a>(00272       Configuration &amp; config  00273     );00274 00283     <span class="keyword">static</span> <a class="code" href="classPRemoteConnection.html#z313_0">Status</a> <a class="code" href="classPRemoteConnection.html#z317_0">GetConfiguration</a>(00284       <span class="keyword">const</span> <a class="code" href="classPString.html">PString</a> &amp; name,   00285       Configuration &amp; config  <span class="comment">// Configuration of remote connection</span>00286     );00287 00296     <a class="code" href="classPRemoteConnection.html#z313_0">Status</a> <a class="code" href="classPRemoteConnection.html#z317_1">SetConfiguration</a>(00297       <span class="keyword">const</span> Configuration &amp; config,  00298       BOOL create = FALSE            00299     );00300 00309     <span class="keyword">static</span> <a class="code" href="classPRemoteConnection.html#z313_0">Status</a> <a class="code" href="classPRemoteConnection.html#z317_1">SetConfiguration</a>(00310       <span class="keyword">const</span> <a class="code" href="classPString.html">PString</a> &amp; name,          00311       <span class="keyword">const</span> Configuration &amp; config,  00312       BOOL create = FALSE            00313     );00314 00323     <span class="keyword">static</span> <a class="code" href="classPRemoteConnection.html#z313_0">Status</a> <a class="code" href="classPRemoteConnection.html#z317_4">RemoveConfiguration</a>(00324       <span class="keyword">const</span> <a class="code" href="classPString.html">PString</a> &amp; name          00325     );00327     00328   <span class="keyword">protected</span>:<a name="l00329"></a><a class="code" href="classPRemoteConnection.html#n0">00329</a>     <a class="code" href="classPString.html">PString</a> <a class="code" href="classPRemoteConnection.html#n0">remoteName</a>;<a name="l00330"></a><a class="code" href="classPRemoteConnection.html#n1">00330</a>     <a class="code" href="classPString.html">PString</a> <a class="code" href="classPRemoteConnection.html#n1">userName</a>;<a name="l00331"></a><a class="code" href="classPRemoteConnection.html#n2">00331</a>     <a class="code" href="classPString.html">PString</a> password;<a name="l00332"></a><a class="code" href="classPRemoteConnection.html#n3">00332</a>     DWORD <a class="code" href="classPRemoteConnection.html#n3">osError</a>;00333 00334   <span class="keyword">private</span>:00335     <a class="code" href="classPRemoteConnection.html#z307_0">PRemoteConnection</a>(<span class="keyword">const</span> <a class="code" href="classPRemoteConnection.html">PRemoteConnection</a> &amp;) { }00336     <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="classPRemoteConnection.html">PRemoteConnection</a> &amp;) { }00337     <span class="keywordtype">void</span> Construct();00338 00339 00340 <span class="comment">// Include platform dependent part of class</span>00341 <span class="preprocessor">#ifdef _WIN32</span>00342 <span class="preprocessor"></span><span class="preprocessor">#include "msos/ptlib/remconn.h"</span>00343 <span class="preprocessor">#else</span>00344 <span class="preprocessor"></span><span class="preprocessor">#include "unix/ptlib/remconn.h"</span>00345 <span class="preprocessor">#endif</span>00346 <span class="preprocessor"></span>};00347 00348 <span class="preprocessor">#endif</span>00349 <span class="preprocessor"></span>00350 <span class="comment">// End Of File ///////////////////////////////////////////////////////////////</span></pre></div><hr><address style="align: right;"><small>Generated on Wed Sep 29 22:44:12 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 + -