« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 6 of about 6 for MyEventSignal (0.003 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 ... -color=auto examp $ kill -TERM 3976 At the first terminal window you should catch the following: Caught signal 15 */ class MyEventSignal { private $base , $ev ; public function __construct ( $base ) { $this -> base = $base ; $this -> ev = Event :: signal ( $b ... ntSighandler ( $no , $c ) { echo "Caught signal $no \n" ; $this -> base -> exit (); } } $base = new EventBase (); $c = new MyEventSignal ( $base ); $base -> loop (); ?> Note that signal callbacks are run in the event loop after the signal occurs, so it is saf ... se 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 ... -color=auto examp $ kill -TERM 3976 At the first terminal window you should catch the following: Caught signal 15 */ class MyEventSignal { private $base , $ev ; public function __construct ( $base ) { $this -> base = $base ; $this -> ev = Event :: signal ( $b ... ntSighandler ( $no , $c ) { echo "Caught signal $no \n" ; $this -> base -> exit (); } } $base = new EventBase (); $c = new MyEventSignal ( $base ); $base -> loop (); ?> Note that signal callbacks are run in the event loop after the signal occurs, so it is saf ... : 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 ... -color=auto examp $ kill -TERM 3976 At the first terminal window you should catch the following: Caught signal 15 */ class MyEventSignal { private $base , $ev ; public function __construct ( $base ) { $this -> base = $base ; $this -> ev = Event :: signal ( $b ... ntSighandler ( $no , $c ) { echo "Caught signal $no \n" ; $this -> base -> exit (); } } $base = new EventBase (); $c = new MyEventSignal ( $base ); $base -> loop (); ?> 上の例の出力は、 たとえば以下のようになります。 Caught signal 15 例2 Adding a timer <?php ... 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 ... -color=auto examp $ kill -TERM 3976 At the first terminal window you should catch the following: Caught signal 15 */ class MyEventSignal { private $base , $ev ; public function __construct ( $base ) { $this -> base = $base ; $this -> ev = Event :: signal ( $b ... ntSighandler ( $no , $c ) { echo "Caught signal $no \n" ; $this -> base -> exit (); } } $base = new EventBase (); $c = new MyEventSignal ( $base ); $base -> loop (); ?> 上の例の出力は、 たとえば以下のようになります。 Caught signal 15 例2 Adding a timer <?php ...
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 - ... -color=auto examp $ kill -TERM 3976 At the first terminal window you should catch the following: Caught signal 15 */ class MyEventSignal { private $base ; function __construct ( $base ) { $this -> base = $base ; } function eventSighandler ( $no , $c ) { echo ... "Caught signal $no \n" ; event_base_loopexit ( $c -> base ); } } $base = event_base_new (); $c = new MyEventSignal ( $base ); $no = SIGTERM ; $ev = evsignal_new ( $base , $no , array( $c , 'eventSighandler' ), $c ); evsignal_add ( $ev ); ...
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 - ... -color=auto examp $ kill -TERM 3976 At the first terminal window you should catch the following: Caught signal 15 */ class MyEventSignal { private $base ; function __construct ( $base ) { $this -> base = $base ; } function eventSighandler ( $no , $c ) { echo ... "Caught signal $no \n" ; event_base_loopexit ( $c -> base ); } } $base = event_base_new (); $c = new MyEventSignal ( $base ); $no = SIGTERM ; $ev = evsignal_new ( $base , $no , array( $c , 'eventSighandler' ), $c ); evsignal_add ( $ev ); ...
https://man.mtool.work/php/8.3/event.examples.html
PREV 1 NEXT