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

📄 classptelnetsocket.html

📁 pwlib开发文档
💻 HTML
📖 第 1 页 / 共 4 页
字号:
</table><a name="a6" doxytag="PTelnetSocket::OnOutOfBand"></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::OnOutOfBand </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const void *&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>buf</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>PINDEX&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>len</em></td>        </tr>        <tr>          <td></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"><code> [virtual]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>This is callback function called by the system whenever out of band data from the TCP/IP stream is received. A descendent class may interpret this data according to the semantics of the high level protocol.<p>The TELNET socket uses this for sychronisation. <p>Reimplemented from <a class="el" href="classPTCPSocket.html#z431_1">PTCPSocket</a>.    </td>  </tr></table><a name="b5" doxytag="PTelnetSocket::OnSubOption"></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::OnSubOption </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">BYTE&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>code</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>const BYTE *&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>info</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>PINDEX&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>len</em></td>        </tr>        <tr>          <td></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"><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 sub-option command from the remote system.     </td>  </tr></table><a name="b3" doxytag="PTelnetSocket::OnWill"></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::OnWill </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 WILL request from the remote system.<p>The default action is to send a DO for options that are understood by the standard TELNET class and a DONT for all others.     </td>  </tr></table><a name="b4" doxytag="PTelnetSocket::OnWont"></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::OnWont </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 WONT 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></table><a name="a2" doxytag="PTelnetSocket::Read"></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::Read </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">void *&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>buf</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>PINDEX&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>len</em></td>        </tr>        <tr>          <td></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"><code> [virtual]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Low level read from the channel. This function may block until the requested number of characters were read or the read timeout was reached. The <a class="el" href="classPChannel.html#z49_3">GetLastReadCount()</a> function returns the actual number of bytes read.<p>The <a class="el" href="classPChannel.html#z55_2">GetErrorCode()</a> function should be consulted after <a class="el" href="classPTelnetSocket.html#a2">Read()</a> returns FALSE to determine what caused the failure.<p>The TELNET channel intercepts and escapes commands in the data stream to implement the TELNET protocol.<p><dl compact><dt><b>Returns: </b></dt><dd> TRUE indicates that at least one character was read from the channel. FALSE means no bytes were read due to timeout or some other I/O error. </dl><p>Reimplemented from <a class="el" href="classPTCPSocket.html#a0">PTCPSocket</a>.    </td>  </tr></table><a name="a7" doxytag="PTelnetSocket::SendCommand"></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::SendCommand </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top"><a class="el" href="classPTelnetSocket.html#s63">Command</a>&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>cmd</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>int&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>opt</em> = 0</td>        </tr>        <tr>          <td></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Send an escaped IAC command. The <code>opt</code> parameters meaning depends on the command being sent:<p><dl compact> <dt>DO, DONT, WILL, WONT <dd><code>opt</code> is Options code.<p><dt>AbortOutput <dd>TRUE is flush buffer.<p><dt>InterruptProcess, Break, AbortProcess, SuspendProcess <dd>TRUE is synchronise. </dl><p>Synchronises the TELNET streams, inserts the data mark into outgoing data stream and sends an out of band data to the remote to flush all data in the stream up until the syncronisation command.<p><dl compact><dt><b>Returns: </b></dt><dd> TRUE if the command was successfully sent. </dl>    </td>  </tr></table><a name="a8" doxytag="PTelnetSocket::SendDo"></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::SendDo </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> [virtual]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Send DO request.<p><dl compact><dt><b>Returns: </b></dt><dd> TRUE if the command was successfully sent. </dl>    </td>  </tr></table><a name="a9" doxytag="PTelnetSocket::SendDont"></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::SendDont </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> [virtual]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Send DONT command.<p><dl compact><dt><b>Returns: </b></dt><dd> TRUE if the command was successfully sent. </dl>    </td>  </tr></table><a name="a12" doxytag="PTelnetSocket::SendSubOption"></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::SendSubOption </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">BYTE&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>code</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>const BYTE *&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>info</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>PINDEX&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>len</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>int&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>subCode</em> = -1</td>        </tr>        <tr>          <td></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Send a sub-option with the information given.<p><dl compact><dt><b>Returns: </b></dt><dd> TRUE if the command was successfully sent. </dl>    </td>  </tr></table><a name="a10" doxytag="PTelnetSocket::SendWill"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">

⌨️ 快捷键说明

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