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

📄 classpipxsocket.html

📁 pwlib开发文档
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<p>Implements <a class="el" href="classPSocket.html#b2">PSocket</a>.<p>Reimplemented in <a class="el" href="classPSPXSocket.html#b1">PSPXSocket</a>.    </td>  </tr></table><a name="z165_2" doxytag="PIPXSocket::Listen"></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 PIPXSocket::Listen </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">unsigned&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>queueSize</em> = 5, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>WORD&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>port</em> = 0, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap><a class="el" href="classPSocket.html#z369_0">Reusability</a>&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>reuse</em> = AddressIsExclusive</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>Listen on a socket for a remote host on the specified port number. This may be used for server based applications. A "connecting" socket begins a connection by initiating a connection to this socket. An active socket of this type is then used to generate other "accepting" sockets which establish a two way communications channel with the "connecting" socket.<p>If the <a class="el" href="classPSocket.html#n0">port</a># parameter is zero then the port number as defined by the object instance construction or the PIPSocket::SetPort()# function.<p>For the UDP protocol, the queueSize# parameter is ignored.<p><dl compact><dt><b>Returns: </b></dt><dd> TRUE if the channel was successfully opened. </dl><dl compact><dt><b>Parameters: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>port</em>&nbsp;</td><td>Number of pending accepts that may be queued. </td></tr><tr><td valign=top><em>reuse</em>&nbsp;</td><td>Port number to use for the connection. Can/Cant listen more than once. </td></tr></table></dl><p>Reimplemented from <a class="el" href="classPSocket.html#z369_2">PSocket</a>.<p>Reimplemented in <a class="el" href="classPSPXSocket.html#z399_0">PSPXSocket</a>.    </td>  </tr></table><a name="b0" doxytag="PIPXSocket::OpenSocket"></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 PIPXSocket::OpenSocket </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, virtual]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p><p>Implements <a class="el" href="classPSocket.html#b1">PSocket</a>.<p>Reimplemented in <a class="el" href="classPSPXSocket.html#b0">PSPXSocket</a>.    </td>  </tr></table><a name="z169_2" doxytag="PIPXSocket::ReadFrom"></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 PIPXSocket::ReadFrom </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></td>          <td class="md" nowrap><a class="el" href="classPIPXSocket_1_1Address.html">Address</a> &amp;&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>addr</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>WORD &amp;&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>port</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>Read a datagram from a remote computer.<p><dl compact><dt><b>Returns: </b></dt><dd> TRUE if all the bytes were sucessfully written. </dl><dl compact><dt><b>Parameters: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>len</em>&nbsp;</td><td>Data to be written as URGENT TCP data. </td></tr><tr><td valign=top><em>addr</em>&nbsp;</td><td>Number of bytes pointed to by buf#. </td></tr><tr><td valign=top><em>port</em>&nbsp;</td><td><a class="el" href="classPIPXSocket_1_1Address.html">Address</a> from which the datagram was received. Port from which the datagram was received. </td></tr></table></dl>    </td>  </tr></table><a name="z169_0" doxytag="PIPXSocket::SetPacketType"></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 PIPXSocket::SetPacketType </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">int&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>type</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>Sets the packet type for datagrams sent by this socket.<p><dl compact><dt><b>Returns: </b></dt><dd> TRUE if the type was successfully set. </dl><dl compact><dt><b>Parameters: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>type</em>&nbsp;</td><td>IPX packet type for this socket. </td></tr></table></dl>    </td>  </tr></table><a name="z169_3" doxytag="PIPXSocket::WriteTo"></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 PIPXSocket::WriteTo </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></td>          <td class="md" nowrap>const <a class="el" href="classPIPXSocket_1_1Address.html">Address</a> &amp;&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>addr</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>WORD&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>port</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>Write a datagram to a remote computer.<p><dl compact><dt><b>Returns: </b></dt><dd> TRUE if all the bytes were sucessfully written. </dl><dl compact><dt><b>Parameters: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>len</em>&nbsp;</td><td>Data to be written as URGENT TCP data. </td></tr><tr><td valign=top><em>addr</em>&nbsp;</td><td>Number of bytes pointed to by buf#. </td></tr><tr><td valign=top><em>port</em>&nbsp;</td><td><a class="el" href="classPIPXSocket_1_1Address.html">Address</a> to which the datagram is sent. Port to which the datagram is sent. </td></tr></table></dl>    </td>  </tr></table><hr>The documentation for this class was generated from the following file:<ul><li><a class="el" href="ipxsock_8h-source.html">ipxsock.h</a></ul><hr><address style="align: right;"><small>Generated on Wed Sep 29 22:44:17 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 + -