Sophie

Sophie

distrib > Mageia > 7 > x86_64 > by-pkgid > 2b917e0437961edec048f1d15e2d7449 > files > 1216

php-manual-en-7.2.11-1.mga7.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>The Swoole\Process class</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="class.swoole-mysql-exception.html">Swoole\MySQL\Exception</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="swoole-process.alarm.html">Swoole\Process::alarm</a></div>
 <div class="up"><a href="book.swoole.html">Swoole</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="class.swoole-process" class="reference">

 <h1 class="title">The Swoole\Process class</h1>
 

 <div class="partintro"><p class="verinfo">(PHP 5 &gt;= 5.2.0, PHP 7, PECL swoole &gt;= 1.9.0)</p>


  <div class="section" id="swoole-process.intro">
   <h2 class="title">Introduction</h2>
   <p class="para">

   </p>
  </div>


  <div class="section" id="swoole-process.synopsis">
   <h2 class="title">Class synopsis</h2>


   <div class="classsynopsis">
    <div class="ooclass"></div>


    <div class="classsynopsisinfo">
     <span class="ooclass">
      <strong class="classname">Swoole\Process</strong>
     </span>
     {</div>

    <div class="classsynopsisinfo classsynopsisinfo_comment">/* Constants */</div>
    <div class="fieldsynopsis">
     <span class="modifier">const</span>
     <span class="type">integer</span>
      <var class="fieldsynopsis_varname"><a href="class.swoole-process.html#swoole-process.constants.ipc-nowait"><var class="varname">IPC_NOWAIT</var></a></var>
     <span class="initializer"> = 256</span>
    ;</div>

    
    <div class="classsynopsisinfo classsynopsisinfo_comment">/* Methods */</div>
    <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="modifier">static</span> <span class="type">void</span> <span class="methodname"><a href="swoole-process.alarm.html" class="methodname">alarm</a></span>
    ( <span class="methodparam"><span class="type">integer</span> <code class="parameter">$interval_usec</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">void</span> <span class="methodname"><a href="swoole-process.close.html" class="methodname">close</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="modifier">static</span> <span class="type">void</span> <span class="methodname"><a href="swoole-process.daemon.html" class="methodname">daemon</a></span>
    ([ <span class="methodparam"><span class="type">boolean</span> <code class="parameter">$nochdir</code></span>
   [, <span class="methodparam"><span class="type">boolean</span> <code class="parameter">$noclose</code></span>
  ]] )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">void</span> <span class="methodname"><a href="swoole-process.destruct.html" class="methodname">__destruct</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">ReturnType</span> <span class="methodname"><a href="swoole-process.exec.html" class="methodname">exec</a></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$exec_file</code></span>
   , <span class="methodparam"><span class="type">string</span> <code class="parameter">$args</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">void</span> <span class="methodname"><a href="swoole-process.exit.html" class="methodname">exit</a></span>
    ([ <span class="methodparam"><span class="type">string</span> <code class="parameter">$exit_code</code></span>
  ] )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">void</span> <span class="methodname"><a href="swoole-process.freequeue.html" class="methodname">freeQueue</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="modifier">static</span> <span class="type">void</span> <span class="methodname"><a href="swoole-process.kill.html" class="methodname">kill</a></span>
    ( <span class="methodparam"><span class="type">integer</span> <code class="parameter">$pid</code></span>
   [, <span class="methodparam"><span class="type">string</span> <code class="parameter">$signal_no</code></span>
  ] )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">void</span> <span class="methodname"><a href="swoole-process.name.html" class="methodname">name</a></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$process_name</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">mixed</span> <span class="methodname"><a href="swoole-process.pop.html" class="methodname">pop</a></span>
    ([ <span class="methodparam"><span class="type">integer</span> <code class="parameter">$maxsize</code></span>
  ] )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">boolean</span> <span class="methodname"><a href="swoole-process.push.html" class="methodname">push</a></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$data</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">string</span> <span class="methodname"><a href="swoole-process.read.html" class="methodname">read</a></span>
    ([ <span class="methodparam"><span class="type">integer</span> <code class="parameter">$maxsize</code></span>
  ] )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="modifier">static</span> <span class="type">void</span> <span class="methodname"><a href="swoole-process.signal.html" class="methodname">signal</a></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$signal_no</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>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">void</span> <span class="methodname"><a href="swoole-process.start.html" class="methodname">start</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">array</span> <span class="methodname"><a href="swoole-process.statqueue.html" class="methodname">statQueue</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">boolean</span> <span class="methodname"><a href="swoole-process.usequeue.html" class="methodname">useQueue</a></span>
    ( <span class="methodparam"><span class="type">integer</span> <code class="parameter">$key</code></span>
   [, <span class="methodparam"><span class="type">integer</span> <code class="parameter">$mode</code></span>
  ] )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="modifier">static</span> <span class="type">array</span> <span class="methodname"><a href="swoole-process.wait.html" class="methodname">wait</a></span>
    ([ <span class="methodparam"><span class="type">boolean</span> <code class="parameter">$blocking</code></span>
  ] )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">integer</span> <span class="methodname"><a href="swoole-process.write.html" class="methodname">write</a></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$data</code></span>
   )</div>

   }</div>


  </div>
  

  <div class="section" id="swoole-process.constants">
   <h2 class="title">Predefined Constants</h2>
   <dl>


    
     <dt id="swoole-process.constants.ipc-nowait"><strong><code>Swoole\Process::IPC_NOWAIT</code></strong></dt>

     <dd>

      <p class="para"/>
     </dd>

    

   </dl>

  </div>



 </div>

 






































































































































<h2>Table of Contents</h2><ul class="chunklist chunklist_reference"><li><a href="swoole-process.alarm.html">Swoole\Process::alarm</a> — High precision timer which triggers signal with fixed interval.</li><li><a href="swoole-process.close.html">Swoole\Process::close</a> — Close the pipe to the child process.</li><li><a href="swoole-process.construct.html">Swoole\Process::__construct</a> — Construct a process.</li><li><a href="swoole-process.daemon.html">Swoole\Process::daemon</a> — Change the process to be a daemon process.</li><li><a href="swoole-process.destruct.html">Swoole\Process::__destruct</a> — Destory the process.</li><li><a href="swoole-process.exec.html">Swoole\Process::exec</a> — Execute system commands.</li><li><a href="swoole-process.exit.html">Swoole\Process::exit</a> — Stop the child processes.</li><li><a href="swoole-process.freequeue.html">Swoole\Process::freeQueue</a> — Destory the message queue created by swoole_process::useQueue.</li><li><a href="swoole-process.kill.html">Swoole\Process::kill</a> — Send signal to the child process.</li><li><a href="swoole-process.name.html">Swoole\Process::name</a> — Set name of the process.</li><li><a href="swoole-process.pop.html">Swoole\Process::pop</a> — Read and pop data from the message queue.</li><li><a href="swoole-process.push.html">Swoole\Process::push</a> — Write and push data into the message queue.</li><li><a href="swoole-process.read.html">Swoole\Process::read</a> — Read data sending to the process.</li><li><a href="swoole-process.signal.html">Swoole\Process::signal</a> — Send signal to the child processes.</li><li><a href="swoole-process.start.html">Swoole\Process::start</a> — Start the process.</li><li><a href="swoole-process.statqueue.html">Swoole\Process::statQueue</a> — Get the stats of the message queue used as the communication method between processes.</li><li><a href="swoole-process.usequeue.html">Swoole\Process::useQueue</a> — Create a message queue as the communication method between the parent process and child processes.</li><li><a href="swoole-process.wait.html">Swoole\Process::wait</a> — Wait for the events of child processes.</li><li><a href="swoole-process.write.html">Swoole\Process::write</a> — Write data into the pipe and communicate with the parent process or child processes.</li></ul>
</div>
<hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="class.swoole-mysql-exception.html">Swoole\MySQL\Exception</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="swoole-process.alarm.html">Swoole\Process::alarm</a></div>
 <div class="up"><a href="book.swoole.html">Swoole</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>