« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 13 for EvIo (0.002 sec.)
EvIo::createStopped — Create stopped EvIo watcher object | PHP 8.3 11982
EvIo::createStopped (PECL ev >= 0.2.0) EvIo::createStopped — Create stopped EvIo watcher object 説明 final public static function EvIo::createStopped ( mixed $fd , int $events , callable $callback , mixed $data = null , int $priority = 0 ): ... EvIo The same as EvIo::__construct() , but doesn't start the watcher automatically. パラメータ fd The same as for EvIo::__const ... ruct() events The same as for EvIo::__construct() callback See Watcher callbacks . data Custom data associated with the watcher. priority Watcher priority 戻 ... り値 Returns EvIo object on success. 参考 EvIo::__construct() - Constructs EvIo watcher object EvLoop::io() - Create EvIo watcher object ass ...
https://man.mtool.work/php/8.3/evio.createstopped.html
EvIo::__construct — Constructs EvIo watcher object | PHP 8.3 11225
EvIo::__construct (PECL ev >= 0.2.0) EvIo::__construct — Constructs EvIo watcher object 説明 public function EvIo::__construct ( mixed $fd , int $events , callable $callback , mixed $data = ? , int $priority = ? ) Constructs EvIo watcher ob ... bit masks . callback See Watcher callbacks . data Custom data associated with the watcher. priority Watcher priority 参考 EvIo::createStopped() - Create stopped EvIo watcher object EvLoop::io() - Create EvIo watcher object associated with the curren ...
https://man.mtool.work/php/8.3/evio.construct.html
EvLoop::io — Create EvIo watcher object associated with the current event loop ... 10786
EvLoop::io (PECL ev >= 0.2.0) EvLoop::io — Create EvIo watcher object associated with the current event loop instance 説明 final public function EvLoop::io ( mixed $fd , int $events , callable $callback , mixed $data = null , int $priority ... = 0 ): EvIo Create EvIo watcher object associated with the current event loop instance. パラメータ All parameters have the same meanin ... g as for EvIo::__construct() 戻り値 Returns EvIo object on success. 参考 EvIo::__construct() - Constructs EvIo watcher object 他のマニュ ...
https://man.mtool.work/php/8.3/evloop.io.html
EvIo::set — Configures the watcher | PHP 8.3 10557
EvIo::set (PECL ev >= 0.2.0) EvIo::set — Configures the watcher 説明 public function EvIo::set ( mixed $fd , int $events ): void Configures the EvIo watcher パラメータ fd The same as for EvIo::__construct() events The same as for EvIo::__co ...
https://man.mtool.work/php/8.3/evio.set.html
The EvIo class | PHP 8.3 9959
The EvIo class (PECL ev >= 0.2.0) はじめに EvIo watchers check whether a file descriptor(or socket, or a stream castable to numeric file descriptor) is readable or writable in each iteration of the event loop, or, more precisely, when readi ... an interval timer, just to be sure they won't block infinitely. Always consider using non-blocking mode. クラス概要 class EvIo extends EvWatcher { /* プロパティ */ public $ fd ; public $ events ; /* 継承したプロパティ */ public $ is_active ; public ... c static function createStopped ( mixed $fd , int $events , callable $callback , mixed $data = null , int $priority = 0 ): EvIo public function set ( mixed $fd , int $events ): void /* 継承したメソッド */ public function EvWatcher::clear (): int publ ... ack ): void public function EvWatcher::start (): void public function EvWatcher::stop (): void } プロパティ fd events 目次 EvIo::__construct — Constructs EvIo watcher object EvIo::createStopped — Create stopped EvIo watcher object EvIo::set — Configu ...
https://man.mtool.work/php/8.3/class.evio.html
Ev | PHP 8.3 8410
Ev はじめに この拡張モジュールは、 » libev ライブラリへのインターフェイスを提供します。 このライブラリは、C で書かれたハイパフォーマンスで高機能なイベントループです。 注意 : この拡張モジュールは Windows 環境では利用できません。 Libev はイベ ... nstruct — Constructs the EvIdle watcher object EvIdle::createStopped — Creates instance of a stopped EvIdle watcher object EvIo — The EvIo class EvIo::__construct — Constructs EvIo watcher object EvIo::createStopped — Create stopped EvIo watcher obje ... ct EvIo::set — Configures the watcher EvLoop — The EvLoop class EvLoop::backend — Returns an integer describing the backend used b ... loop instance EvLoop::invokePending — Invoke all pending watchers while resetting their pending state EvLoop::io — Create EvIo watcher object associated with the current event loop instance EvLoop::loopFork — Must be called after a fork EvLoop::now ...
https://man.mtool.work/php/8.3/book.ev.html
The EvLoop class | PHP 8.3 7988
The EvLoop class (PECL ev >= 0.2.0) はじめに Represents an event loop that is always distinct from the default loop . Unlike the default loop , it cannot handle EvChild watchers. Having threads we have to create a loop per thread, and use t ... : void final public function io ( mixed $fd , int $events , callable $callback , mixed $data = null , int $priority = 0 ): EvIo public function loopFork (): void public function now (): float public function nowUpdate (): void final public function p ... 0 indicates that there are no watchers pending. io_interval Higher io_interval allows libev to spend more time collecting EvIo events, so more events can be handled per iteration, at the cost of increasing latency. Timeouts (both EvPeriodic and EvTi ... e will introduce an additional sleep() call into most loop iterations. The sleep time ensures that libev will not poll for EvIo events more often than once per this interval, on average. Many programs can usually benefit by setting the io_interval to ...
https://man.mtool.work/php/8.3/class.evloop.html
ウォッチャー | PHP 8.3 7513
ウォッチャー ウォッチャーは、何らかのイベントに関する興味を記録するオブジェクトです。 たとえば次のコードは、 STDIN が読み込み可能になるまで待ちます。 <?php // STDIN が読み込み可能になるまで待ちます $w = new EvIo ( STDIN , Ev :: READ , funct ... : RUN_ONCE ); ?> すべてのウォッチャーのコンストラクタが、自動的にウォッチャーを開始します。 createStopped メソッドを使う ( EvIo::createStopped() など) と、停止状態のウォッチャーを作れます。 ウォッチャーオブジェクトを破棄するときには、自動的にウォッチ ...
https://man.mtool.work/php/8.3/ev.watchers.html
プロセス制御 | PHP 8.3 7425
プロセス制御 Eio インストール/設定 定義済み定数 例 Eio 関数 Ev インストール/設定 例 ウォッチャー ウォッチャーのコールバック Periodic ウォッチャーの操作モード Ev — Ev クラス EvCheck — EvCheck クラス EvChild — EvChild クラス EvEmbed — EvEmbed ... クラス EvFork — EvFork クラス EvIdle — The EvIdle class EvIo — The EvIo class EvLoop — The EvLoop class EvPeriodic — The EvPeriodic class EvPrepare — EvPrepare クラス EvSignal — The E ...
https://man.mtool.work/php/8.3/refs.fileprocess.process.html
例 | PHP 8.3 7214
例 例1 タイマーのサンプル <?php // タイマーを作り、2 秒後に起動します $w1 = new EvTimer ( 2 , 0 , function () { echo "2 seconds elapsed\n" ; }); // タイマーを作って 2 秒後に起動させ、その後は // 手で止めるまで 1 秒おきに繰り返します $w2 = n ... L ; }); Ev :: run (); ?> 例5 STDIN が読み込み可能になるまで待つ例 <?php // STDIN が読み込み可能になるまで待ちます $w = new EvIo ( STDIN , Ev :: READ , function ( $watcher , $revents ) { echo "STDIN is readable\n" ; }); Ev :: run ( Ev :: RUN_ONCE ); ? ... Ev :: stop ( Ev :: BREAK_ALL ); }); // ソケットが書き込み可能になったときに HEAD リクエストを作ります $write_watcher = new EvIo ( $socket , Ev :: WRITE , function ( $w ) use ( $socket , $timeout_watcher , $e_nonblocking ) { // タイムアウトのウォッチャ ... $socket , $in , strlen ( $in ))) { trigger_error ( "Failed writing $in to socket" , E_USER_ERROR ); } $read_watcher = new EvIo ( $socket , Ev :: READ , function ( $w , $re ) use ( $socket , $e_nonblocking ) { // ソケットが読み込み可能になりました。非 ...
https://man.mtool.work/php/8.3/ev.examples.html
PREV 1 2 NEXT