« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 67 for Sending (0.006 sec.)
Add a background task to be run in parallel 12960
« GearmanClient::addTask GearmanClient::addTaskHigh » PHP Manual GearmanClient Add a background task to be run in parallel 検索 GearmanClient::addTaskBackground (PECL gearman >= 0.5.0) GearmanClient::addTaskBackground — Add a background tas ... ize )\n" ; # This status loop is not needed, just showing how it works for ( $x = 0 ; $x < $workload_size ; $x ++) { echo "Sending status: " . ( $x + 1 ) . "/ $workload_size complete\n" ; $job -> sendStatus ( $x + 1 , $workload_size ); $job -> sendData ... ved job: H:foo.local:65 Workload: !dlroW olleH (12) 1/12 complete Received job: H:foo.local:66 Workload: Hello World! (12) Sending status: 1/12 complete Sending status: 2/12 complete Sending status: 2/12 complete Sending status: 3/12 complete Sending st ... atus: 3/12 complete Sending status: 4/12 complete Sending status: 4/12 complete Sending status: 5/12 complete Sending status: 5/12 complete Sending st ...
https://man.mtool.work/php/8.3/gearmanclient.addtaskbackground.html
Add a background task to be run in parallel 12960
« GearmanClient::addTask GearmanClient::addTaskHigh » PHP Manual GearmanClient Add a background task to be run in parallel 検索 GearmanClient::addTaskBackground (PECL gearman >= 0.5.0) GearmanClient::addTaskBackground — Add a background tas ... ize )\n" ; # This status loop is not needed, just showing how it works for ( $x = 0 ; $x < $workload_size ; $x ++) { echo "Sending status: " . ( $x + 1 ) . "/ $workload_size complete\n" ; $job -> sendStatus ( $x + 1 , $workload_size ); $job -> sendData ... ved job: H:foo.local:65 Workload: !dlroW olleH (12) 1/12 complete Received job: H:foo.local:66 Workload: Hello World! (12) Sending status: 1/12 complete Sending status: 2/12 complete Sending status: 2/12 complete Sending status: 3/12 complete Sending st ... atus: 3/12 complete Sending status: 4/12 complete Sending status: 4/12 complete Sending status: 5/12 complete Sending status: 5/12 complete Sending st ...
https://man.mtool.work/php/8.3/gearmanclient.addtaskbackground.html
Basic usage 10342
« 例 Basic Gearman client and worker, background » PHP Manual 例 Basic usage 検索 Basic usage 例1 Basic Gearman client and worker This example shows a very simple client and worker. The client sends a string to the job server, and the worke ... te our client object. $gmclient = new GearmanClient (); # Add default server (localhost). $gmclient -> addServer (); echo "Sending job\n" ; # Send reverse job do { $result = $gmclient -> doNormal ( "reverse" , "Hello!" ); # Check for various return pack ... ize )\n" ; # This status loop is not needed, just showing how it works for ( $x = 0 ; $x < $workload_size ; $x ++) { echo "Sending status: " . ( $x + 1 ) . "/ $workload_size complete\n" ; $job -> sendStatus ( $x , $workload_size ); sleep ( 1 ); } $resul ... 下のようになります。 % php reverse_worker.php Starting Waiting for job... Received job: H:foo.local:36 Workload: Hello! (6) Sending status: 1/6 complete Sending status: 2/6 complete Sending status: 3/6 complete Sending status: 4/6 complete Sending status ...
https://man.mtool.work/php/8.3/gearman.examples-reverse.html
Basic usage 10342
« 例 Basic Gearman client and worker, background » PHP Manual 例 Basic usage 検索 Basic usage 例1 Basic Gearman client and worker This example shows a very simple client and worker. The client sends a string to the job server, and the worke ... te our client object. $gmclient = new GearmanClient (); # Add default server (localhost). $gmclient -> addServer (); echo "Sending job\n" ; # Send reverse job do { $result = $gmclient -> doNormal ( "reverse" , "Hello!" ); # Check for various return pack ... ize )\n" ; # This status loop is not needed, just showing how it works for ( $x = 0 ; $x < $workload_size ; $x ++) { echo "Sending status: " . ( $x + 1 ) . "/ $workload_size complete\n" ; $job -> sendStatus ( $x , $workload_size ); sleep ( 1 ); } $resul ... 下のようになります。 % php reverse_worker.php Starting Waiting for job... Received job: H:foo.local:36 Workload: Hello! (6) Sending status: 1/6 complete Sending status: 2/6 complete Sending status: 3/6 complete Sending status: 4/6 complete Sending status ...
https://man.mtool.work/php/8.3/gearman.examples-reverse.html
Receives a message 9631
« ZMQSocket::isPersistent ZMQSocket::recvMulti » PHP Manual ZMQSocket Receives a message 検索 ZMQSocket::recv (PECL zmq >= 0.5.0) ZMQSocket::recv — Receives a message 説明 public function ZMQSocket::recv ( int $mode = 0 ): string Receive a ... _REQ ); $queue -> connect ( "tcp://127.0.0.1:5555" ); /* Assign socket 1 to the queue, send and receive */ $retries = 5 ; $sending = true ; /* Start a loop */ do { try { /* Try to send / receive */ if ( $sending ) { echo "Sending message\n" ; $queue -> ... send ( "This is a message" , ZMQ :: MODE_DONTWAIT ); $sending = false ; } else { echo "Got response: " . $queue -> recv ( ZMQ :: MODE_DONTWAIT ) . "\n" ; break; } } catch ( ZMQSocketEx ... Sleep a bit between operations */ usleep ( 5 ); } while (-- $retries ); ?> 上の例の出力は、 たとえば以下のようになります。 Sending message - Unable to execute operation, retrying (4) Got response: This is a message 関連キーワード: message ZMQSocket queu ...
https://man.mtool.work/php/8.3/zmqsocket.recv.html
Receives a message 9119
« ZMQSocket::isPersistent ZMQSocket::recvMulti » PHP Manual ZMQSocket Receives a message 検索 ZMQSocket::recv (PECL zmq >= 0.5.0) ZMQSocket::recv — Receives a message 説明 public function ZMQSocket::recv ( int $mode = 0 ): string Receive a ... _REQ ); $queue -> connect ( "tcp://127.0.0.1:5555" ); /* Assign socket 1 to the queue, send and receive */ $retries = 5 ; $sending = true ; /* Start a loop */ do { try { /* Try to send / receive */ if ( $sending ) { echo "Sending message\n" ; $queue -> ... send ( "This is a message" , ZMQ :: MODE_DONTWAIT ); $sending = false ; } else { echo "Got response: " . $queue -> recv ( ZMQ :: MODE_DONTWAIT ) . "\n" ; break; } } catch ( ZMQSocketEx ... Sleep a bit between operations */ usleep ( 5 ); } while (-- $retries ); ?> 上の例の出力は、 たとえば以下のようになります。 Sending message - Unable to execute operation, retrying (4) Got response: This is a message 関連キーワード: message ZMQSocket queu ...
https://man.mtool.work/php/8.3/zmqsocket.recv.html
Read data sending to the process. 8606
« Swoole\Process::push Swoole\Process::signal » PHP Manual Swoole\Process Read data sending to the process. 検索 Swoole\Process::read (PECL swoole >= 1.9.0) Swoole\Process::read — Read data sending to the process. 説明 public function Swool ... e\Process::read ( int $maxsize = ? ): string パラメータ maxsize 戻り値 関連キーワード: Swoole Process Read sending process read maxsize push signal swoole ...
https://man.mtool.work/php/8.3/swoole-process.read.html
Read data sending to the process. 8507
« Swoole\Process::push Swoole\Process::signal » PHP Manual Swoole\Process Read data sending to the process. 検索 Swoole\Process::read (PECL swoole >= 1.9.0) Swoole\Process::read — Read data sending to the process. 説明 public function Swool ... e\Process::read ( int $maxsize = ? ): string パラメータ maxsize 戻り値 関連キーワード: Swoole Process Read data sending process read maxsize push Search signal swoole function int string パラメータ 戻り値 navigate Enter select ...
https://man.mtool.work/php/8.3/swoole-process.read.html
Used in task process for sending result to the worker process when the task is f... 8450
« Swoole\Server::exist Swoole\Server::getClientInfo » PHP Manual Swoole\Server Used in task process for sending result to the worker process when the task is finished. 検索 Swoole\Server::finish (PECL swoole >= 1.9.0) Swoole\Server::finish ... — Used in task process for sending result to the worker process when the task is finished. 説明 public function Swoole\Server::finish ( string $data ): void ... パラメータ data 戻り値 関連キーワード: task process Swoole Server Used sending worker finished finish exist getClientInfo swoole ...
https://man.mtool.work/php/8.3/swoole-server.finish.html
Used in task process for sending result to the worker process when the task is f... 8393
« Swoole\Server::exist Swoole\Server::getClientInfo » PHP Manual Swoole\Server Used in task process for sending result to the worker process when the task is finished. 検索 Swoole\Server::finish (PECL swoole >= 1.9.0) Swoole\Server::finish ... — Used in task process for sending result to the worker process when the task is finished. 説明 public function Swoole\Server::finish ( string $data ): void ... パラメータ data 戻り値 関連キーワード: task process Swoole Server Used sending result worker finished finish data exist Search getClientInfo swoole function string void パラメータ 戻り値 ...
https://man.mtool.work/php/8.3/swoole-server.finish.html
PREV 1 2 3 4 5 6 7 NEXT