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

📄 classptelnetsocket.html

📁 pwlib开发文档
💻 HTML
📖 第 1 页 / 共 4 页
字号:
    <td>      &nbsp;    </td>    <td><p>    </td>  </tr></table><a name="a1" doxytag="PTelnetSocket::PTelnetSocket"></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"> PTelnetSocket::PTelnetSocket </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const <a class="el" href="classPString.html">PString</a> &amp;&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>address</em>          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>    </td>  </tr></table><hr><h2>Member Function Documentation</h2><a name="a5" doxytag="PTelnetSocket::Accept"></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 BOOL PTelnetSocket::Accept </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top"><a class="el" href="classPSocket.html">PSocket</a> &amp;&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>socket</em>          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap><code> [virtual]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Open a socket to a remote host on the specified port number. This is an "accepting" socket. When a "listening" socket has a pending connection to make, this will accept a connection made by the "connecting" socket created to establish a link.<p>The port that the socket uses is the one used in the &lt;A&gt;<a class="el" href="classPTCPSocket.html#z429_0">Listen()</a> command of the <code>socket</code> parameter.<p>Note that this function will block until a remote system connects to the port number specified in the "listening" socket.<p><dl compact><dt><b>Returns: </b></dt><dd> TRUE if the channel was successfully opened. </dl><p>Reimplemented from <a class="el" href="classPTCPSocket.html#z429_2">PTCPSocket</a>.    </td>  </tr></table><a name="a4" doxytag="PTelnetSocket::Connect"></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 BOOL PTelnetSocket::Connect </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const <a class="el" href="classPString.html">PString</a> &amp;&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>address</em>          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap><code> [virtual]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Connect a socket to a remote host on the specified port number. This is typically used by the client or initiator of a communications channel. This connects to a "listening" socket at the other end of the communications channel.<p>The port number as defined by the object instance construction or the &lt;A&gt;<a class="el" href="classPSocket.html#z373_2">PIPSocket::SetPort()</a> function.<p><dl compact><dt><b>Returns: </b></dt><dd> TRUE if the channel was successfully connected to the remote host. </dl><p>Reimplemented from <a class="el" href="classPIPSocket.html#a2">PIPSocket</a>.    </td>  </tr></table><a name="b0" doxytag="PTelnetSocket::Construct"></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 PTelnetSocket::Construct </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap><code> [protected]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p><p>Reimplemented from <a class="el" href="classPChannel.html">PChannel</a>.    </td>  </tr></table><a name="a18" doxytag="PTelnetSocket::GetTerminalType"></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>&amp; PTelnetSocket::GetTerminalType </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap> const<code> [inline]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>    </td>  </tr></table><a name="a20" doxytag="PTelnetSocket::GetWindowSize"></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 PTelnetSocket::GetWindowSize </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">WORD &amp;&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>width</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>WORD &amp;&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>height</em></td>        </tr>        <tr>          <td></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"> const</td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>    </td>  </tr></table><a name="a15" doxytag="PTelnetSocket::IsOurOption"></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 PTelnetSocket::IsOurOption </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">BYTE&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>code</em>          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap> const<code> [inline]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Determine if the option on our side is enabled.<p><dl compact><dt><b>Returns: </b></dt><dd> TRUE if option is enabled. </dl>    </td>  </tr></table><a name="a16" doxytag="PTelnetSocket::IsTheirOption"></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 PTelnetSocket::IsTheirOption </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">BYTE&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>code</em>          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap> const<code> [inline]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Determine if the option on their side is enabled.<p><dl compact><dt><b>Returns: </b></dt><dd> TRUE if option is enabled. </dl>    </td>  </tr></table><a name="b6" doxytag="PTelnetSocket::OnCommand"></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 BOOL PTelnetSocket::OnCommand </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">BYTE&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>code</em>          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap><code> [protected, virtual]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>This callback function is called by the system when it receives an telnet command that it does not do anything with.<p>The default action displays a message to the &lt;A&gt;PError stream (when <code>debug</code> is TRUE) and returns TRUE;<p><dl compact><dt><b>Returns: </b></dt><dd> TRUE if next byte is not part of the command. </dl>    </td>  </tr></table><a name="b1" doxytag="PTelnetSocket::OnDo"></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 void PTelnetSocket::OnDo </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">BYTE&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>option</em>          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap><code> [protected, virtual]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>This callback function is called by the system when it receives a DO request from the remote system.<p>The default action is to send a WILL for options that are understood by the standard TELNET class and a WONT for all others.<p><dl compact><dt><b>Returns: </b></dt><dd> TRUE if option is accepted. </dl>    </td>  </tr></table><a name="b2" doxytag="PTelnetSocket::OnDont"></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 void PTelnetSocket::OnDont </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">BYTE&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>option</em>          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap><code> [protected, virtual]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>This callback function is called by the system when it receives a DONT request from the remote system.<p>The default action is to disable options that are understood by the standard TELNET class. All others are ignored.     </td>  </tr>

⌨️ 快捷键说明

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