📄 classpremoteconnection.html
字号:
</td> <td><p>Get an array of names for all of the available remote connections on this system.<p><dl compact><dt><b>Returns: </b></dt><dd> Array of strings for remote connection names. </dl> </td> </tr></table><a name="z317_2" doxytag="PRemoteConnection::GetConfiguration"></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"> <a class="el" href="classPRemoteConnection.html#z313_0">Status</a> PRemoteConnection::GetConfiguration </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="mdname" nowrap> <em>name</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap><a class="el" href="structPRemoteConnection_1_1Configuration.html">Configuration</a> & </td> <td class="mdname" nowrap> <em>config</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"><code> [static]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Get the configuration of the specified remote access connection.<p><dl compact><dt><b>Returns: </b></dt><dd> <a class="el" href="classPRemoteConnection.html#z313_0s1">Connected</a># if the configuration information was obtained, <a class="el" href="classPRemoteConnection.html#z313_0s7">NoNameOrNumber</a># if the particular RAS name does not exist, <a class="el" href="classPRemoteConnection.html#z313_0s12">NotInstalled</a># if there is no RAS support in the operating system, <a class="el" href="classPRemoteConnection.html#z313_0s10">GeneralFailure</a># on any other error. </dl><dl compact><dt><b>Parameters: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>config</em> </td><td>Remote connection name to get configuration </td></tr></table></dl> </td> </tr></table><a name="z317_0" doxytag="PRemoteConnection::GetConfiguration"></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"> <a class="el" href="classPRemoteConnection.html#z313_0">Status</a> PRemoteConnection::GetConfiguration </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="structPRemoteConnection_1_1Configuration.html">Configuration</a> & </td> <td class="mdname1" valign="top" nowrap> <em>config</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>Get the configuration of the specified remote access connection.<p><dl compact><dt><b>Returns: </b></dt><dd> <a class="el" href="classPRemoteConnection.html#z313_0s1">Connected</a># if the configuration information was obtained, <a class="el" href="classPRemoteConnection.html#z313_0s7">NoNameOrNumber</a># if the particular RAS name does not exist, <a class="el" href="classPRemoteConnection.html#z313_0s12">NotInstalled</a># if there is no RAS support in the operating system, <a class="el" href="classPRemoteConnection.html#z313_0s10">GeneralFailure</a># on any other error. </dl><dl compact><dt><b>Parameters: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>config</em> </td><td><a class="el" href="structPRemoteConnection_1_1Configuration.html">Configuration</a> of remote connection </td></tr></table></dl> </td> </tr></table><a name="z313_2" doxytag="PRemoteConnection::GetErrorCode"></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"> DWORD PRemoteConnection::GetErrorCode </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap> const<code> [inline]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Get the error code for the last operation.<p><dl compact><dt><b>Returns: </b></dt><dd> Operating system error code. </dl> </td> </tr></table><a name="z315_0" doxytag="PRemoteConnection::GetName"></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"> const <a class="el" href="classPString.html">PString</a>& PRemoteConnection::GetName </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap> const<code> [inline]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Get the name of the RAS connection.<p><dl compact><dt><b>Returns: </b></dt><dd> String for IP address, or empty string if none. </dl> </td> </tr></table><a name="z313_1" doxytag="PRemoteConnection::GetStatus"></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"> <a class="el" href="classPRemoteConnection.html#z313_0">Status</a> PRemoteConnection::GetStatus </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </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>Get the current status of the RAS connection.<p><dl compact><dt><b>Returns: </b></dt><dd> Status code. </dl> </td> </tr></table><a name="z309_1" doxytag="PRemoteConnection::HashFunction"></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"> virtual PINDEX PRemoteConnection::HashFunction </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap><code> [virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Get has value for the connection <dl compact><dt><b>Returns: </b></dt><dd>Hash value of the connection name string. </dl><p>Reimplemented from <a class="el" href="classPObject.html#z203_1">PObject</a>. </td> </tr></table><a name="z311_2" doxytag="PRemoteConnection::Open"></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 PRemoteConnection::Open </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="mdname" nowrap> <em>name</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>username</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>password</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>BOOL </td> <td class="mdname" nowrap> <em>existing</em> = FALSE</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>Open the remote connection. <dl compact><dt><b>Parameters: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>username</em> </td><td>RAS name of of connection to open. </td></tr><tr><td valign=top><em>password</em> </td><td>Username for remote log in. </td></tr><tr><td valign=top><em>existing</em> </td><td>password for remote log in. Flag for open only if already connected. </td></tr></table></dl> </td> </tr></table><a name="z311_1" doxytag="PRemoteConnection::Open"></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 PRemoteConnection::Open </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="mdname" nowrap> <em>name</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>BOOL </td> <td class="mdname" nowrap> <em>existing</em> = FALSE</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>Open the remote connection. <dl compact><dt><b>Parameters: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>existing</em> </td><td>RAS name of of connection to open. Flag for open only if already connected. </td></tr></table></dl> </td> </tr></table><a name="z311_0" doxytag="PRemoteConnection::Open"></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 PRemoteConnection::Open </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">BOOL </td> <td class="mdname1" valign="top" nowrap> <em>existing</em> = FALSE </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>Open the remote connection. <dl compact><dt><b>Parameters: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>existing</em> </td><td>Flag for open only if already connected. </td></tr>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -