« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 6 of about 6 for examp (0.002 sec.)
Constructing signal events 11095
« 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.: $ ps aux | grep examp ruslan 3976 0.2 0. ... 0 139896 11256 pts/1 S+ 10:25 0:00 php examples/signal.php ruslan 3978 0.0 0.0 9572 864 pts/2 S+ 10:26 0:00 grep --color=auto examp $ kill -TERM 3976 At the first term ... nal Events . 関連キーワード: signal base Event php Constructing events construct terminal window ev callbacks also handler examples grep examp ruslan pts Caught MyEventSignal ...
https://man.mtool.work/php/8.3/event.constructing.signal.events.html
Constructing signal events 11095
« 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.: $ ps aux | grep examp ruslan 3976 0.2 0. ... 0 139896 11256 pts/1 S+ 10:25 0:00 php examples/signal.php ruslan 3978 0.0 0.0 9572 864 pts/2 S+ 10:26 0:00 grep --color=auto examp $ kill -TERM 3976 At the first term ... ing Signal Events . 関連キーワード: signal base Event Constructing events construct terminal window callbacks also handler examples grep examp ruslan Caught MyEventSignal eventSighandler loop call watch style signals constructor flag ...
https://man.mtool.work/php/8.3/event.constructing.signal.events.html
Makes event pending 10199
« 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 ... 合に 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.: $ ps aux | grep examp ruslan 3976 0.2 0. ... 0 139896 11256 pts/1 S+ 10:25 0:00 php examples/signal.php ruslan 3978 0.0 0.0 9572 864 pts/2 S+ 10:26 0:00 grep --color=auto examp $ kill -TERM 3976 At the first term ... キーワード: Event event base signal pending Makes timeout timer seconds terminal window Caught never called specified Adding examples grep examp ruslan MyEventSignal eventSighandler EventBase loop elapsed ...
https://man.mtool.work/php/8.3/event.add.html
Makes event pending 8865
« 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 ... 合に 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.: $ ps aux | grep examp ruslan 3976 0.2 0. ... 0 139896 11256 pts/1 S+ 10:25 0:00 php examples/signal.php ruslan 3978 0.0 0.0 9572 864 pts/2 S+ 10:26 0:00 grep --color=auto examp $ kill -TERM 3976 At the first term ...
https://man.mtool.work/php/8.3/event.add.html
例 6763
« インストール手順 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 - ... ( "Done\n" ); } } if ( $argc != 3 ) { echo <<<EOS Trivial HTTP 0.x client Syntax: php { $argv [ 0 ]} [hostname] [resource] Example: php { $argv [ 0 ]} www.google.com / EOS; exit(); } $base = new EventBase (); $dns_base = new EventDnsBase ( $base , TRU ... MyListener ( $port ); $l -> dispatch (); ?> 例4 SSL echo server <?php /* * SSL echo server * * To test: * 1) Run: * $ php examples/ssl-echo-server/server.php 9998 * * 2) in another terminal window run: * $ socat - SSL:127.0.0.1:9998,verify=1,cafile=e ... 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.: $ ps aux | grep examp ruslan 3976 0.2 0. ...
https://man.mtool.work/php/8.3/event.examples.html
例 6763
« インストール手順 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 - ... ( "Done\n" ); } } if ( $argc != 3 ) { echo <<<EOS Trivial HTTP 0.x client Syntax: php { $argv [ 0 ]} [hostname] [resource] Example: php { $argv [ 0 ]} www.google.com / EOS; exit(); } $base = new EventBase (); $dns_base = new EventDnsBase ( $base , TRU ... MyListener ( $port ); $l -> dispatch (); ?> 例4 SSL echo server <?php /* * SSL echo server * * To test: * 1) Run: * $ php examples/ssl-echo-server/server.php 9998 * * 2) in another terminal window run: * $ socat - SSL:127.0.0.1:9998,verify=1,cafile=e ... 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.: $ ps aux | grep examp ruslan 3976 0.2 0. ...
https://man.mtool.work/php/8.3/event.examples.html
PREV 1 NEXT