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

📄 function.socket-create-pair.html

📁 php的帮助文档,涉及到PHP的案例和基本语法,以及实际应用内容
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head>  <title>Creates a pair of indistinguishable sockets and stores them in an array</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.socket-create-listen.html">socket_create_listen</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.socket-create.html">socket_create</a></div> <div class="up"><a href="ref.sockets.html">Socket Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div><hr /><div id="function.socket-create-pair" class="refentry"> <div class="refnamediv">  <h1 class="refname">socket_create_pair</h1>  <p class="verinfo">(PHP 4 &gt;= 4.0.7, PHP 5)</p><p class="refpurpose"><span class="refname">socket_create_pair</span> &mdash; <span class="dc-title">Creates a pair of indistinguishable sockets and stores them in an array</span></p> </div>  <div class="refsect1 description">  <h3 class="title">Description</h3>  <div class="methodsynopsis dc-description">   <span class="type">bool</span> <span class="methodname"><b><b>socket_create_pair</b></b></span>    ( <span class="methodparam"><span class="type">int</span> <tt class="parameter">$domain</tt></span>   , <span class="methodparam"><span class="type">int</span> <tt class="parameter">$type</tt></span>   , <span class="methodparam"><span class="type">int</span> <tt class="parameter">$protocol</tt></span>   , <span class="methodparam"><span class="type">array</span> <tt class="parameter reference">&$fd</tt></span>   )</div>  <p class="para rdfs-comment">   <b>socket_create_pair()</b> creates two connected and   indistinguishable sockets, and stores them in <i><tt class="parameter">fd</tt></i>.   This function is commonly used in IPC (InterProcess Communication).  </p> </div> <div class="refsect1 parameters">  <h3 class="title">Parameters</h3>  <p class="para">   <dl>    <dt>     <span class="term"><i><tt class="parameter">domain</tt></i></span>     <dd>      <p class="para">       The <i><tt class="parameter">domain</tt></i> parameter specifies the protocol       family to be used by the socket. See <a href="function.socket-create.html" class="function">socket_create()</a>       for the full list.      </p>     </dd>    </dt>    <dt>     <span class="term"><i><tt class="parameter">type</tt></i></span>     <dd>      <p class="para">       The <i><tt class="parameter">type</tt></i> parameter selects the type of communication       to be used by the socket. See <a href="function.socket-create.html" class="function">socket_create()</a> for the        full list.      </p>     </dd>    </dt>    <dt>     <span class="term"><i><tt class="parameter">protocol</tt></i></span>     <dd>      <p class="para">       The <i><tt class="parameter">protocol</tt></i> parameter sets the specific       protocol within the specified <i><tt class="parameter">domain</tt></i> to be used       when communicating on the returned socket. The proper value can be retrieved by       name by using <a href="function.getprotobyname.html" class="function">getprotobyname()</a>. If

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -