📄 function.stream-socket-get-name.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head> <title>Retrieve the name of the local or remote sockets</title> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> </head> <body><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.stream-socket-enable-crypto.html">stream_socket_enable_crypto</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.stream-socket-pair.html">stream_socket_pair</a></div> <div class="up"><a href="ref.stream.html">Stream Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div><hr /><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)</p><p class="refpurpose"><span class="refname">stream_socket_get_name</span> — <span class="dc-title">Retrieve the name of the local or remote sockets</span></p> </div> <div class="refsect1 unknown"> <h3 class="title">Description</h3> <div class="methodsynopsis dc-description"> <span class="type">string</span> <span class="methodname"><b><b>stream_socket_get_name</b></b></span> ( <span class="methodparam"><span class="type">resource</span> <tt class="parameter">$handle</tt></span> , <span class="methodparam"><span class="type">bool</span> <tt class="parameter">$want_peer</tt></span> )</div> <p class="para rdfs-comment"> Returns the local or remote name of a given socket connection. If <i><tt class="parameter">want_peer</tt></i> is set to <b><tt>TRUE</tt></b> the remote socket name will be returned, if it is set to <b><tt>FALSE</tt></b> the local socket name will be returned. </p> <p class="para"> See also <a href="function.stream-socket-accept.html" class="function">stream_socket_accept()</a>. </p> </div></div><hr /><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.stream-socket-enable-crypto.html">stream_socket_enable_crypto</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.stream-socket-pair.html">stream_socket_pair</a></div> <div class="up"><a href="ref.stream.html">Stream Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -