<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.swoole-funcs.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'zh',
  ),
  'this' => 
  array (
    0 => 'function.swoole-event-set.php',
    1 => 'swoole_event_set',
    2 => 'Update the event callback functions of a socket',
  ),
  'up' => 
  array (
    0 => 'ref.swoole-funcs.php',
    1 => 'Swoole 函数',
  ),
  'prev' => 
  array (
    0 => 'function.swoole-event-exit.php',
    1 => 'swoole_event_exit',
  ),
  'next' => 
  array (
    0 => 'function.swoole-event-wait.php',
    1 => 'swoole_event_wait',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/swoole/functions/swoole-event-set.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.swoole-event-set" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">swoole_event_set</h1>
  <p class="verinfo">(PECL swoole &gt;= 1.9.0)</p><p class="refpurpose"><span class="refname">swoole_event_set</span> &mdash; <span class="dc-title">Update the event callback functions of a socket</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.swoole-event-set-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description"><span class="methodname"><strong>swoole_event_set</strong></span>(<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$fd</code></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.callable.php" class="type callable">callable</a></span> <code class="parameter">$read_callback</code><span class="initializer"> = ?</span></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.callable.php" class="type callable">callable</a></span> <code class="parameter">$write_callback</code><span class="initializer"> = ?</span></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$events</code><span class="initializer"> = 0</span></span><br>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>

  <p class="para rdfs-comment">

  </p>

 </div>


 <div class="refsect1 parameters" id="refsect1-function.swoole-event-set-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-set-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   
  </p>
 </div>



</div><?php manual_footer($setup); ?>