📄 classpipxsocket.html
字号:
<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">( </td> <td class="md" nowrap valign="top">unsigned </td> <td class="mdname" nowrap> <em>queueSize</em> = 5, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>WORD </td> <td class="mdname" nowrap> <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> </td> <td class="mdname" nowrap> <em>reuse</em> = AddressIsExclusive</td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"><code> [virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </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> </td><td>Number of pending accepts that may be queued. </td></tr><tr><td valign=top><em>reuse</em> </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">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap><code> [protected, virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </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">( </td> <td class="md" nowrap valign="top">void * </td> <td class="mdname" nowrap> <em>buf</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>PINDEX </td> <td class="mdname" nowrap> <em>len</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap><a class="el" href="classPIPXSocket_1_1Address.html">Address</a> & </td> <td class="mdname" nowrap> <em>addr</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>WORD & </td> <td class="mdname" nowrap> <em>port</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"><code> [virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </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> </td><td>Data to be written as URGENT TCP data. </td></tr><tr><td valign=top><em>addr</em> </td><td>Number of bytes pointed to by buf#. </td></tr><tr><td valign=top><em>port</em> </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">( </td> <td class="md" nowrap valign="top">int </td> <td class="mdname1" valign="top" nowrap> <em>type</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>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> </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">( </td> <td class="md" nowrap valign="top">const void * </td> <td class="mdname" nowrap> <em>buf</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>PINDEX </td> <td class="mdname" nowrap> <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> & </td> <td class="mdname" nowrap> <em>addr</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>WORD </td> <td class="mdname" nowrap> <em>port</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"><code> [virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </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> </td><td>Data to be written as URGENT TCP data. </td></tr><tr><td valign=top><em>addr</em> </td><td>Number of bytes pointed to by buf#. </td></tr><tr><td valign=top><em>port</em> </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 + -