mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2025-12-17 16:34:32 +08:00
0.0.1
This commit is contained in:
99
docs/php/socket_addrinfo_lookup.html
Normal file
99
docs/php/socket_addrinfo_lookup.html
Normal file
@@ -0,0 +1,99 @@
|
||||
<!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>Get array with contents of getaddrinfo about the given hostname</title>
|
||||
</head>
|
||||
<body class="docs"><div id="layout">
|
||||
<div id="layout-content"><div id="function.socket-addrinfo-lookup" class="refentry">
|
||||
<div class="refnamediv">
|
||||
<h1 class="refname">socket_addrinfo_lookup</h1>
|
||||
<p class="verinfo">(PHP 7 >= 7.2.0)</p><p class="refpurpose"><span class="refname">socket_addrinfo_lookup</span> — <span class="dc-title">Get array with contents of getaddrinfo about the given hostname</span></p>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="refsect1 description" id="refsect1-function.socket-addrinfo-lookup-description">
|
||||
<h3 class="title">说明</h3>
|
||||
<div class="methodsynopsis dc-description">
|
||||
<span class="methodname"><strong>socket_addrinfo_lookup</strong></span>
|
||||
( <span class="methodparam"><span class="type">string</span> <code class="parameter">$host</code></span>
|
||||
[, <span class="methodparam"><span class="type">string</span> <code class="parameter">$service</code></span>
|
||||
[, <span class="methodparam"><span class="type">array</span> <code class="parameter">$hints</code></span>
|
||||
]] ) : <span class="type">array</span></div>
|
||||
|
||||
<p class="para rdfs-comment">
|
||||
Lookup different ways we can connect to <code class="parameter">host</code>. The returned array contains
|
||||
a set of resources that we can bind to using <span class="function"><a href="socket_addrinfo_bind.html" class="function">socket_addrinfo_bind()</a></span>.
|
||||
</p>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="refsect1 parameters" id="refsect1-function.socket-addrinfo-lookup-parameters">
|
||||
<h3 class="title">参数</h3>
|
||||
<dl>
|
||||
|
||||
|
||||
<dt>
|
||||
<code class="parameter">host</code></dt>
|
||||
|
||||
<dd>
|
||||
|
||||
<p class="para">
|
||||
Hostname to search.
|
||||
</p>
|
||||
</dd>
|
||||
|
||||
|
||||
|
||||
<dt>
|
||||
<code class="parameter">service</code></dt>
|
||||
|
||||
<dd>
|
||||
|
||||
<p class="para">
|
||||
The service to connect to. If service is a name, it is translated to the corresponding
|
||||
port number.
|
||||
</p>
|
||||
</dd>
|
||||
|
||||
|
||||
|
||||
<dt>
|
||||
<code class="parameter">hints</code></dt>
|
||||
|
||||
<dd>
|
||||
|
||||
<p class="para">
|
||||
Hints provide criteria for selecting addresses returned. You may specify the
|
||||
hints as defined by getadrinfo.
|
||||
</p>
|
||||
</dd>
|
||||
|
||||
|
||||
</dl>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="refsect1 returnvalues" id="refsect1-function.socket-addrinfo-lookup-returnvalues">
|
||||
<h3 class="title">返回值</h3>
|
||||
<p class="para">
|
||||
Returns an array of AddrInfo resource handles that can be used with the other socket_addrinfo functions.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="refsect1 seealso" id="refsect1-function.socket-addrinfo-lookup-seealso">
|
||||
<h3 class="title">参见</h3>
|
||||
<p class="para">
|
||||
<ul class="simplelist">
|
||||
<li class="member"><span class="function"><a href="socket_addrinfo_bind.html" class="function" rel="rdfs-seeAlso">socket_addrinfo_bind()</a> - Create and bind to a socket from a given addrinfo</span></li>
|
||||
<li class="member"><span class="function"><a href="socket_addrinfo_connect.html" class="function" rel="rdfs-seeAlso">socket_addrinfo_connect()</a> - Create and connect to a socket from a given addrinfo</span></li>
|
||||
<li class="member"><span class="function"><a href="socket_addrinfo_explain.html" class="function" rel="rdfs-seeAlso">socket_addrinfo_explain()</a> - Get information about addrinfo</span></li>
|
||||
</ul>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
|
||||
</div></div></div></body></html>
|
||||
Reference in New Issue
Block a user