Sophie

Sophie

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

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>Constructs EvIo watcher object</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="class.evio.html">EvIo</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="evio.createstopped.html">EvIo::createStopped</a></div>
 <div class="up"><a href="class.evio.html">EvIo</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="evio.construct" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">EvIo::__construct</h1>
  <p class="verinfo">(PECL ev &gt;= 0.2.0)</p><p class="refpurpose"><span class="refname">EvIo::__construct</span> &mdash; <span class="dc-title">Constructs EvIo watcher object</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-evio.construct-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span>
    <span class="methodname"><strong>EvIo::__construct</strong></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">$events</code>
   </span>
   , <span class="methodparam">
    <span class="type"><a href="language.types.callable.html" class="type callable">callable</a></span>
     <code class="parameter">$callback</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">$data</code>
   </span>
   [, <span class="methodparam">
    <span class="type">int</span>
     <code class="parameter">$priority</code>
   </span>
  ]] )</div>

  <p class="para rdfs-comment">
   Constructs EvIo watcher object and starts the watcher automatically.
  </p>
 </div>

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

   <dt>

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

     <p class="para">
      Can be a stream opened with
       <span class="function"><a href="function.fopen.html" class="function">fopen()</a></span>
      or similar functions, numeric file descriptor, or socket.
     </p>
    </dd>

   </dt>

   <dt>

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

     <p class="para">
      <strong><code>Ev::READ</code></strong>
      and/or
      <strong><code>Ev::WRITE</code></strong>
      . See
      <a href="class.ev.html#ev.constants.watcher-revents" class="link">the bit masks</a>
      .
     </p>
    </dd>

   </dt>

   <dt>

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

     <p class="para">
      See
      <a href="ev.watcher-callbacks.html" class="link">Watcher callbacks</a>
      .
     </p>
    </dd>

   </dt>

   <dt>

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

     <p class="para">
      Custom data associated with the watcher.
     </p>
    </dd>

   </dt>

   <dt>

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

     <p class="para">
      <a href="class.ev.html#ev.constants.watcher-pri" class="link">Watcher priority</a>
     </p>
    </dd>

   </dt>

  </dl>

 </div>

 <div class="refsect1 returnvalues" id="refsect1-evio.construct-returnvalues">
  <h3 class="title">Return Values</h3>
  <p class="para">
   Returns EvIo object on success.
  </p>
 </div>

 <div class="refsect1 seealso" id="refsect1-evio.construct-seealso">
  <h3 class="title">See Also</h3>
  <ul class="simplelist">
   <li class="member">
     <span class="methodname"><a href="evio.createstopped.html" class="methodname" rel="rdfs-seeAlso">EvIo::createStopped()</a> - Create stopped EvIo watcher object</span>
   </li>
   <li class="member">
     <span class="methodname"><a href="evloop.io.html" class="methodname" rel="rdfs-seeAlso">EvLoop::io()</a> - Create EvIo watcher object associated with the current event
  loop instance</span>
   </li>
  </ul>
 </div>

</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="class.evio.html">EvIo</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="evio.createstopped.html">EvIo::createStopped</a></div>
 <div class="up"><a href="class.evio.html">EvIo</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>