mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2025-06-18 13:57:03 +08:00
81 lines
2.6 KiB
HTML
81 lines
2.6 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
|
|
<title>获取本地或者远程的套接字名称</title>
|
|
</head>
|
|
<body class="docs"><div id="layout">
|
|
<div id="layout-content"><div id="function.stream-socket-get-name" class="refentry">
|
|
<div class="refnamediv">
|
|
<h1 class="refname">stream_socket_get_name</h1>
|
|
<p class="verinfo">(PHP 5, PHP 7)</p><p class="refpurpose"><span class="refname">stream_socket_get_name</span> — <span class="dc-title">获取本地或者远程的套接字名称</span></p>
|
|
|
|
</div>
|
|
|
|
<div class="refsect1 description" id="refsect1-function.stream-socket-get-name-description">
|
|
<h3 class="title">说明</h3>
|
|
<div class="methodsynopsis dc-description">
|
|
<span class="methodname"><strong>stream_socket_get_name</strong></span>
|
|
( <span class="methodparam"><span class="type">resource</span> <code class="parameter">$handle</code></span>
|
|
, <span class="methodparam"><span class="type">bool</span> <code class="parameter">$want_peer</code></span>
|
|
) : <span class="type">string</span></div>
|
|
|
|
<p class="para rdfs-comment">
|
|
返回给定的本地或者远程套接字连接的名称。
|
|
</p>
|
|
</div>
|
|
|
|
|
|
<div class="refsect1 parameters" id="refsect1-function.stream-socket-get-name-parameters">
|
|
<h3 class="title">参数</h3>
|
|
<p class="para">
|
|
<dl>
|
|
|
|
|
|
<dt>
|
|
<code class="parameter">handle</code></dt>
|
|
|
|
<dd>
|
|
|
|
<p class="para">
|
|
需要获取其名称的套接字连接。
|
|
</p>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt>
|
|
<code class="parameter">want_peer</code></dt>
|
|
|
|
<dd>
|
|
|
|
<p class="para">
|
|
如果设置为 <strong><code>TRUE</code></strong> ,那么将返回 <em>remote</em> 套接字连接名称;如果设置为 <strong><code>FALSE</code></strong> 则返回 <em>local</em> 套接字连接名称。
|
|
</p>
|
|
</dd>
|
|
|
|
|
|
</dl>
|
|
|
|
</p>
|
|
</div>
|
|
|
|
|
|
<div class="refsect1 returnvalues" id="refsect1-function.stream-socket-get-name-returnvalues">
|
|
<h3 class="title">返回值</h3>
|
|
<p class="para">
|
|
套接字连接的名称。
|
|
</p>
|
|
</div>
|
|
|
|
|
|
<div class="refsect1 seealso" id="refsect1-function.stream-socket-get-name-seealso">
|
|
<h3 class="title">参见</h3>
|
|
<p class="para">
|
|
<ul class="simplelist">
|
|
<li class="member"><span class="function"><a href="stream_socket_accept.html" class="function" rel="rdfs-seeAlso">stream_socket_accept()</a> - 接受由 stream_socket_server 创建的套接字连接</span></li>
|
|
</ul>
|
|
</p>
|
|
</div>
|
|
|
|
</div></div></div></body></html> |