mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2025-06-18 05:26:57 +08:00
98 lines
2.5 KiB
HTML
98 lines
2.5 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>Add new callback functions of a socket into the EventLoop</title>
|
|
</head>
|
|
<body class="docs"><div id="layout">
|
|
<div id="layout-content"><div id="function.swoole-event-add" class="refentry">
|
|
<div class="refnamediv">
|
|
<h1 class="refname">swoole_event_add</h1>
|
|
<p class="verinfo">(PHP 5 >= 5.2.0, PHP 7, PECL swoole >= 1.9.0)</p><p class="refpurpose"><span class="refname">swoole_event_add</span> — <span class="dc-title">Add new callback functions of a socket into the EventLoop</span></p>
|
|
|
|
</div>
|
|
|
|
<div class="refsect1 description" id="refsect1-function.swoole-event-add-description">
|
|
<h3 class="title">说明</h3>
|
|
<div class="methodsynopsis dc-description">
|
|
<span class="methodname"><strong>swoole_event_add</strong></span>
|
|
( <span class="methodparam"><span class="type">int</span> <code class="parameter">$fd</code></span>
|
|
[, <span class="methodparam"><span class="type"><a href="language.types.callable.html" class="type callable">callable</a></span> <code class="parameter">$read_callback</code></span>
|
|
[, <span class="methodparam"><span class="type"><a href="language.types.callable.html" class="type callable">callable</a></span> <code class="parameter">$write_callback</code></span>
|
|
[, <span class="methodparam"><span class="type">int</span> <code class="parameter">$events</code><span class="initializer"> = 0</span></span>
|
|
]]] ) : <span class="type">int</span></div>
|
|
|
|
<p class="para rdfs-comment">
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
|
|
<div class="refsect1 parameters" id="refsect1-function.swoole-event-add-parameters">
|
|
<h3 class="title">参数</h3>
|
|
<dl>
|
|
|
|
|
|
<dt>
|
|
<code class="parameter">fd</code></dt>
|
|
|
|
<dd>
|
|
|
|
<p class="para">
|
|
|
|
</p>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt>
|
|
<code class="parameter">read_callback</code></dt>
|
|
|
|
<dd>
|
|
|
|
<p class="para">
|
|
|
|
</p>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt>
|
|
<code class="parameter">write_callback</code></dt>
|
|
|
|
<dd>
|
|
|
|
<p class="para">
|
|
|
|
</p>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt>
|
|
<code class="parameter">events</code></dt>
|
|
|
|
<dd>
|
|
|
|
<p class="para">
|
|
|
|
</p>
|
|
</dd>
|
|
|
|
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
|
|
<div class="refsect1 returnvalues" id="refsect1-function.swoole-event-add-returnvalues">
|
|
<h3 class="title">返回值</h3>
|
|
<p class="para">
|
|
|
|
</p>
|
|
</div>
|
|
|
|
|
|
|
|
</div></div></div></body></html> |