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

📄 classpspxsocket.html

📁 pwlib开发文档
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>PSPXSocket class Reference</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.2.18 --><center><a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="namespaces.html">Namespace List</a> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="annotated.html">Compound List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; <a class="qindex" href="globals.html">File Members</a> &nbsp; </center><hr><h1>PSPXSocket Class Reference</h1><code>#include &lt;<a class="el" href="spxsock_8h-source.html">spxsock.h</a>&gt;</code><p><p>Inheritance diagram for PSPXSocket:<p><center><img src="classPSPXSocket.png" usemap="#PSPXSocket_map" border="0" alt=""></center><map name="PSPXSocket_map"><area href="classPIPXSocket.html" alt="PIPXSocket" shape="rect" coords="0,168,83,192"><area href="classPSocket.html" alt="PSocket" shape="rect" coords="0,112,83,136"><area href="classPChannel.html" alt="PChannel" shape="rect" coords="0,56,83,80"><area href="classPObject.html" alt="PObject" shape="rect" coords="0,0,83,24"></map><a href="classPSPXSocket-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0><tr><td></td></tr><tr><td colspan=2><br><h2>Public Methods</h2></td></tr><tr><td colspan="2"><div class="groupHeader">Construction.</div></td></tr><tr><td nowrap align=right valign=top>&nbsp;</td><td valign=bottom><a class="el" href="classPSPXSocket.html#z397_0">PSPXSocket</a> (WORD <a class="el" href="classPSocket.html#n0">port</a>=0)</td></tr><tr><td colspan="2"><div class="groupHeader">Overrides from class PSocket.</div></td></tr><tr><td nowrap align=right valign=top>virtual BOOL&nbsp;</td><td valign=bottom><a class="el" href="classPSPXSocket.html#z399_0">Listen</a> (unsigned queueSize=5, WORD <a class="el" href="classPSocket.html#n0">port</a>=0, <a class="el" href="classPSocket.html#z369_0">Reusability</a> reuse=AddressIsExclusive)</td></tr><tr><td nowrap align=right valign=top>virtual BOOL&nbsp;</td><td valign=bottom><a class="el" href="classPSPXSocket.html#z399_1">Accept</a> (<a class="el" href="classPSocket.html">PSocket</a> &amp;socket)</td></tr><tr><td colspan=2><br><h2>Protected Methods</h2></td></tr><tr><td nowrap align=right valign=top>virtual BOOL&nbsp;</td><td valign=bottom><a class="el" href="classPSPXSocket.html#b0">OpenSocket</a> ()</td></tr><tr><td nowrap align=right valign=top>virtual const char *&nbsp;</td><td valign=bottom><a class="el" href="classPSPXSocket.html#b1">GetProtocolName</a> () const</td></tr></table><hr><a name="_details"></a><h2>Detailed Description</h2>Create a socket channel that uses the SPX transport over the IPX Protocol. <p><hr><h2>Constructor &amp; Destructor Documentation</h2><a name="z397_0" doxytag="PSPXSocket::PSPXSocket"></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"> PSPXSocket::PSPXSocket </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">WORD&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>port</em> = 0          </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>Create an SPX protocol socket channel. If a remote machine address or a "listening" socket is specified then the channel is also opened.<p>Note that the "copy" constructor here is really a "listening" socket the same as the <a class="el" href="classPSocket.html">PSocket</a> &amp; parameter version. <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>Port number to use for the connection. </td></tr></table></dl>    </td>  </tr></table><hr><h2>Member Function Documentation</h2><a name="z399_1" doxytag="PSPXSocket::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 PSPXSocket::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 <a class="el" href="classPSPXSocket.html#z399_0">Listen()</a># command of the socket# 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><dl compact><dt><b>Parameters: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>socket</em>&nbsp;</td><td>Listening socket making the connection. </td></tr></table></dl><p>Reimplemented from <a class="el" href="classPSocket.html#z369_3">PSocket</a>.    </td>  </tr></table><a name="b1" doxytag="PSPXSocket::GetProtocolName"></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 const char* PSPXSocket::GetProtocolName </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>This function returns the protocol name for the socket type. <p>Reimplemented from <a class="el" href="classPIPXSocket.html#b1">PIPXSocket</a>.    </td>  </tr></table><a name="z399_0" doxytag="PSPXSocket::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 PSPXSocket::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><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="classPIPXSocket.html#z165_2">PIPXSocket</a>.    </td>  </tr></table><a name="b0" doxytag="PSPXSocket::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 PSPXSocket::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>Reimplemented from <a class="el" href="classPIPXSocket.html#b0">PIPXSocket</a>.    </td>  </tr></table><hr>The documentation for this class was generated from the following file:<ul><li><a class="el" href="spxsock_8h-source.html">spxsock.h</a></ul><hr><address style="align: right;"><small>Generated on Wed Sep 29 22:44:19 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 + -