Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > f800694edefe91adea2624f711a41a2d > files > 1604

php-manual-en-5.5.7-1.mga4.noarch.rpm

<!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>Re-configures event</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="event.pending.html">Event::pending</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="event.setpriority.html">Event::setPriority</a></div>
 <div class="up"><a href="class.event.html">Event</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="event.set" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">Event::set</h1>
  <p class="verinfo">(PECL libevent &gt;= 0.0.1)</p><p class="refpurpose"><span class="refname">Event::set</span> &mdash; <span class="dc-title">Re-configures event</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-event.set-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span>
   <span class="type">bool</span>
    <span class="methodname"><strong>Event::set</strong></span>
    ( <span class="methodparam">
    <span class="type"><a href="class.eventbase.html" class="type EventBase">EventBase</a></span>
     <code class="parameter">$base</code>
   </span>
   , <span class="methodparam">
    <span class="type"><a href="language.pseudo-types.html#language.types.mixed" class="type mixed">mixed</a></span>
     <code class="parameter">$fd</code>
   </span>
   [, <span class="methodparam">
    <span class="type">int</span>
     <code class="parameter">$what</code>
   </span>
   [, <span class="methodparam">
    <span class="type"><a href="language.types.callable.html" class="type callable">callable</a></span>
     <code class="parameter">$cb</code>
   </span>
   [, <span class="methodparam">
    <span class="type"><a href="language.pseudo-types.html#language.types.mixed" class="type mixed">mixed</a></span>
     <code class="parameter">$arg</code>
   </span>
  ]]] )</div>

  <p class="para rdfs-comment">
   Re-configures event. Note, this function doesn&#039;t invoke obsolete libevent&#039;s
   event_set. It calls event_assign instead.
  </p>
 </div>

 <div class="refsect1 parameters" id="refsect1-event.set-parameters">
  <h3 class="title">Parameters</h3>
  <dl>

   <dt>

    <span class="term">
     <em><code class="parameter">base</code></em>
    </span>
    <dd>

     <p class="para">
      The event base to associate the event with.
     </p>
    </dd>

   </dt>

   <dt>

    <span class="term">
     <em><code class="parameter">fd</code></em>
    </span>
    <dd>

     <p class="para">
      A stream, socket resource, or numeric file descriptor; for signal events
      pass
      <strong><code>-1</code></strong>
      .
     </p>
    </dd>

   </dt>

   <dt>

    <span class="term">
     <em><code class="parameter">what</code></em>
    </span>
    <dd>

     <p class="para">
      See
      <a href="event.flags.html" class="link">Event flags</a>
      .
     </p>
    </dd>

   </dt>

   <dt>

    <span class="term">
     <em><code class="parameter">cb</code></em>
    </span>
    <dd>

     <p class="para">
      The event callback. See
      <a href="event.callbacks.html" class="link">Event callbacks</a>
      .
     </p>
    </dd>

   </dt>

   <dt>

    <span class="term">
     <em><code class="parameter">arg</code></em>
    </span>
    <dd>

     <p class="para">
      Custom data associated with the event. It will be passed to the callback
      when the event becomes active.
     </p>
    </dd>

   </dt>

  </dl>

 </div>

 <div class="refsect1 returnvalues" id="refsect1-event.set-returnvalues">
  <h3 class="title">Return Values</h3>
  <p class="para">
   Returns <strong><code>TRUE</code></strong> on success. Otherwise <strong><code>FALSE</code></strong>.
  </p>
 </div>

</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="event.pending.html">Event::pending</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="event.setpriority.html">Event::setPriority</a></div>
 <div class="up"><a href="class.event.html">Event</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>