« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 12 for Launch (0.002 sec.)
Set callback for connection close 13761
« EventHttpConnection::makeRequest EventHttpConnection::setLocalAddress » PHP Manual EventHttpConnection Set callback for connection close 検索 EventHttpConnection::setCloseCallback (PECL event >= 1.8.0) EventHttpConnection::setCloseCallbac ... <?php /* * Setting up close-connection callback * * The script handles closed connections using HTTP API. * * Usage: * 1) Launch the server: * $ php examples/http_closecb.php 4242 * * 2) Launch a client in another terminal. Telnet-like * session shoul ... tCloseCallback following mixed conn connections client output process orphaned Event ruslan free base called closed script Launch like Connection ...
https://man.mtool.work/php/8.3/eventhttpconnection.setclosecallback.html
Set callback for connection close 10984
« EventHttpConnection::makeRequest EventHttpConnection::setLocalAddress » PHP Manual EventHttpConnection Set callback for connection close 検索 EventHttpConnection::setCloseCallback (PECL event >= 1.8.0) EventHttpConnection::setCloseCallbac ... <?php /* * Setting up close-connection callback * * The script handles closed connections using HTTP API. * * Usage: * 1) Launch the server: * $ php examples/http_closecb.php 4242 * * 2) Launch a client in another terminal. Telnet-like * session shoul ...
https://man.mtool.work/php/8.3/eventhttpconnection.setclosecallback.html
Constructing signal events 8896
« Event callbacks Event » PHP Manual Event Constructing signal events 検索 Constructing signal events Event can also watch for POSIX-style signals. To construct a handler for a signal, use Event::__construct() constructor with Event::SIGNAL ... flag, or Event::signal() factory method. 例1 Handling SIGTERM signal <?php /* Launch it in a terminal window: $ php examples/signal.php In another terminal window find out the pid and send SIGTERM, e.g.: $ p ...
https://man.mtool.work/php/8.3/event.constructing.signal.events.html
Constructing signal events 8896
« Event callbacks Event » PHP Manual Event Constructing signal events 検索 Constructing signal events Event can also watch for POSIX-style signals. To construct a handler for a signal, use Event::__construct() constructor with Event::SIGNAL ... flag, or Event::signal() factory method. 例1 Handling SIGTERM signal <?php /* Launch it in a terminal window: $ php examples/signal.php In another terminal window find out the pid and send SIGTERM, e.g.: $ p ...
https://man.mtool.work/php/8.3/event.constructing.signal.events.html
例 8543
« インストール手順 Event flags » PHP Manual Event 例 検索 例 例1 Simple HTTP client <?php // Read callback function readcb ( $bev , $base ) { //$input = $bev->input; //$bev->getInput(); //$pos = $input->search("TTP"); $pos = $bev -> input - ... 5535 ) { exit( "Invalid port\n" ); } $l = new MySslEchoServer ( $port ); $l -> dispatch (); ?> 例5 Signal handler <?php /* Launch it in a terminal window: $ php examples/signal.php In another terminal window find out the pid and send SIGTERM, e.g.: $ p ... p -> bind ( $ip , $port ); $base -> dispatch (); 例10 OpenSSL connection <?php /* * Sample OpenSSL client. * * Usage: * 1) Launch a server, e.g.: * $ php examples/https.php 9999 * * 2) Launch the client in another terminal: * $ php examples/ssl-connect ... e <hello at andrewrose dot co dot uk> * * Usage: * 1) Prepare cert.pem certificate and privkey.pem private key files. * 2) Launch the server script * 3) Open TLS connection, e.g.: * $ openssl s_client -connect localhost:25 -starttls smtp -crlf * 4) Sta ...
https://man.mtool.work/php/8.3/event.examples.html
例 8543
« インストール手順 Event flags » PHP Manual Event 例 検索 例 例1 Simple HTTP client <?php // Read callback function readcb ( $bev , $base ) { //$input = $bev->input; //$bev->getInput(); //$pos = $input->search("TTP"); $pos = $bev -> input - ... 5535 ) { exit( "Invalid port\n" ); } $l = new MySslEchoServer ( $port ); $l -> dispatch (); ?> 例5 Signal handler <?php /* Launch it in a terminal window: $ php examples/signal.php In another terminal window find out the pid and send SIGTERM, e.g.: $ p ... p -> bind ( $ip , $port ); $base -> dispatch (); 例10 OpenSSL connection <?php /* * Sample OpenSSL client. * * Usage: * 1) Launch a server, e.g.: * $ php examples/https.php 9999 * * 2) Launch the client in another terminal: * $ php examples/ssl-connect ... e <hello at andrewrose dot co dot uk> * * Usage: * 1) Prepare cert.pem certificate and privkey.pem private key files. * 2) Launch the server script * 3) Open TLS connection, e.g.: * $ openssl s_client -connect localhost:25 -starttls smtp -crlf * 4) Sta ...
https://man.mtool.work/php/8.3/event.examples.html
Makes event pending 8189
« Event Event::addSignal » PHP Manual Event Makes event pending 検索 Event::add (PECL event >= 1.2.6-beta) Event::add — Makes event pending 説明 public function Event::add ( float $timeout = ? ): bool Marks event pending. Non-pending event ... imeout in seconds. 戻り値 成功した場合に true を、失敗した場合に false を返します。 例 例1 Adding a custom signal <?php /* Launch it in a terminal window: $ php examples/signal.php In another terminal window find out the pid and send SIGTERM, e.g.: $ p ...
https://man.mtool.work/php/8.3/event.add.html
Makes event pending 8189
« Event Event::addSignal » PHP Manual Event Makes event pending 検索 Event::add (PECL event >= 1.2.6-beta) Event::add — Makes event pending 説明 public function Event::add ( float $timeout = ? ): bool Marks event pending. Non-pending event ... imeout in seconds. 戻り値 成功した場合に true を、失敗した場合に false を返します。 例 例1 Adding a custom signal <?php /* Launch it in a terminal window: $ php examples/signal.php In another terminal window find out the pid and send SIGTERM, e.g.: $ p ...
https://man.mtool.work/php/8.3/event.add.html
Constructs an EvTimer watcher object 7853
« EvTimer::again EvTimer::createStopped » PHP Manual EvTimer Constructs an EvTimer watcher object 検索 EvTimer::__construct (PECL ev >= 0.2.0) EvTimer::__construct — Constructs an EvTimer watcher object 説明 public function EvTimer::__const ... tart timer firing after 2 seconds $w1 = new EvTimer ( 2 , 0 , function () { echo "2 seconds elapsed\n" ; }); // Create and launch timer firing after 2 seconds repeating each second // until we manually stop it $w2 = new EvTimer ( 2 , 1 , function ( $w ... ) { echo "is called every second, is launched after 2 seconds\n" ; echo "iteration = " , Ev :: iteration (), PHP_EOL ; // Stop the watcher after 5 iterations Ev :: it ... :: run (); echo "END\n" ; ?> 上の例の出力は、 たとえば以下のようになります。 2 seconds elapsed is called every second, is launched after 2 seconds iteration = 1 is called every second, is launched after 2 seconds iteration = 2 is called every second, ...
https://man.mtool.work/php/8.3/evtimer.construct.html
Constructs an EvTimer watcher object 7853
« EvTimer::again EvTimer::createStopped » PHP Manual EvTimer Constructs an EvTimer watcher object 検索 EvTimer::__construct (PECL ev >= 0.2.0) EvTimer::__construct — Constructs an EvTimer watcher object 説明 public function EvTimer::__const ... tart timer firing after 2 seconds $w1 = new EvTimer ( 2 , 0 , function () { echo "2 seconds elapsed\n" ; }); // Create and launch timer firing after 2 seconds repeating each second // until we manually stop it $w2 = new EvTimer ( 2 , 1 , function ( $w ... ) { echo "is called every second, is launched after 2 seconds\n" ; echo "iteration = " , Ev :: iteration (), PHP_EOL ; // Stop the watcher after 5 iterations Ev :: it ... :: run (); echo "END\n" ; ?> 上の例の出力は、 たとえば以下のようになります。 2 seconds elapsed is called every second, is launched after 2 seconds iteration = 1 is called every second, is launched after 2 seconds iteration = 2 is called every second, ...
https://man.mtool.work/php/8.3/evtimer.construct.html
PREV 1 2 NEXT