« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 38 for dispatch (0.002 sec.)
zookeeper_dispatch — Calls callbacks for pending operations | PHP 8.3 13318
zookeeper_dispatch (PECL zookeeper >= 0.4.0) zookeeper_dispatch — Calls callbacks for pending operations 説明 function zookeeper_dispatch (): void The zookeeper_dispatch() function calls the callbacks passed by operations like Zookeeper::ge ... ning of your program. After PHP 7.1, you can ignore this function. This extension uses EG(vm_interrupt) to implement async dispatch. パラメータ この関数にはパラメータはありません。 戻り値 値を返しません。 エラー / 例外 This method emits PHP warning when ... callback could not be invoked. 例 例1 zookeeper_dispatch() example #1 Dispatch callbacks manually. <?php $client = new Zookeeper (); $client -> connect ( 'localhost:2181' ); $clie ... nt -> get ( '/zookeeper' , function() { echo "Callback was called" . PHP_EOL ; }); while( true ) { sleep ( 1 ); zookeeper_dispatch (); } ?> 例2 zookeeper_dispatch() example #2 Declare ticks. <?php declare( ticks = 1 ); $client = new Zookeeper (); $clien ...
https://man.mtool.work/php/8.3/function.zookeeper-dispatch.html
EventBase::dispatch — Dispatch pending events | PHP 8.3 11336
EventBase::dispatch (PECL event >= 1.2.6-beta) EventBase::dispatch — Dispatch pending events 説明 public function EventBase::dispatch (): void Wait for events to become active, and run their callbacks. The same as EventBase::loop() with no ... の関数にはパラメータはありません。 戻り値 成功した場合に true を、失敗した場合に false を返します。 参考 EventBase::loop() - Dispatch pending events 他のマニュアルの関連ページ Docker docker-compose events Linux JM exit(2) Linux JM _Exit(2) Linux JM _exit(2 ...
https://man.mtool.work/php/8.3/eventbase.dispatch.html
pcntl_signal_dispatch — ペンディングシグナル用のハンドラをコールする | PHP 8.3 11038
pcntl_signal_dispatch (PHP 5 >= 5.3.0, PHP 7, PHP 8) pcntl_signal_dispatch — ペンディングシグナル用のハンドラをコールする 説明 function pcntl_signal_dispatch (): bool pcntl_signal_dispatch() 関数は、 pcntl_signal() がインストールしたシグナル ... この関数にはパラメータはありません。 戻り値 成功した場合に true を、失敗した場合に false を返します。 例 例1 pcntl_signal_dispatch() の例 <?php echo "Installing signal handler...\n" ; pcntl_signal ( SIGHUP , function( $signo ) { echo "signal handler cal ... led\n" ; }); echo "Generating signal SIGHUP to self...\n" ; posix_kill ( posix_getpid (), SIGHUP ); echo "Dispatching...\n" ; pcntl_signal_dispatch (); echo "Done\n" ; ?> 上の例の出力は、 たとえば以下のようになります。 Installing signal ... handler... Generating signal SIGHUP to self... Dispatching... signal handler called Done 参考 pcntl_signal() - シグナルハンドラを設定する pcntl_sigprocmask() - ブロックされたシグ ...
https://man.mtool.work/php/8.3/function.pcntl-signal-dispatch.html
Swoole\Event::dispatch — Perform a single event loop iteration | PHP 8.3 10519
Swoole\Event::dispatch (No version information available, might only be in Git) Swoole\Event::dispatch — Perform a single event loop iteration 説明 public static function Swoole\Event::dispatch (): void The purpose of this function is to ma ... rom taking over execution. 戻り値 No return value. 例 例1 Manual event loop control <?php while ( true ) { Swoole\Event :: dispatch (); } 他のマニュアルの関連ページ Python asyncio-policy Python a-conceptual-overview-of-asyncio Python xmlrpc.server Django ...
https://man.mtool.work/php/8.3/swoole-event.dispatch.html
Yaf_Dispatcher::dispatch — リクエストをディスパッチする | PHP 8.3 9497
Yaf_Dispatcher::dispatch (Yaf >=1.0.0) Yaf_Dispatcher::dispatch — リクエストをディスパッチする 説明 public function Yaf_Dispatcher::dispatch ( Yaf_Request_Abstract $request ): Yaf_Response_Abstract このメソッドが、 Yaf_Dispatcher の主要な作 ... ディスパッチ処理には、次の三段階があります。 ルーティング ディスパッチ レスポンス ローディングが発生するのは一度だけで、 Yaf_Dispatcher::dispatch() が呼ばれたときの リクエストオブジェクトの値を使って行います。 ディスパッチはループ内で発生します。ひとつのリ ... n_Abstract を参照ください) がリクエストオブジェクトをリセットしてアクションを追加することもあります。 すべてが終わると Yaf_Dispatcher がレスポンスを返します。 パラメータ request 戻り値 他のマニュアルの関連ページ Linux JM rpcgen(1) Django base FastAPI ミド ...
https://man.mtool.work/php/8.3/yaf-dispatcher.dispatch.html
例 | PHP 8.3 9355
例 例1 Simple HTTP client <?php // Read callback function readcb ( $bev , $base ) { //$input = $bev->input; //$bev->getInput(); //$pos = $input->search("TTP"); $pos = $bev -> input -> search ( "TTP" ); while (( $n = $bev -> input -> remove ... ( $dns_base , $argv [ 1 ], 80 , EventUtil :: AF_UNSPEC )) { exit( "Can't connect to host { $argv [ 1 ]} \n" ); } $base -> dispatch (); ?> 上の例の出力は、 たとえば以下のようになります。 Connected. HTTP/1.1 301 Moved Permanently Date: Fri, 01 Mar 2013 18 ... IP, and don't need to resolve DNS. */ if (! $bev -> connect ( "127.0.0.1:80" )) { exit( "Can't connect to host\n" ); } // Dispatch pending events $base -> dispatch (); ?> 例3 Echo server <?php /* * Simple echo server based on libevent's connection liste ... ate listener" ; exit( 1 ); } $this -> listener -> setErrorCallback (array( $this , "accept_error_cb" )); } public function dispatch () { $this -> base -> dispatch (); } // This callback is invoked when there is data to read on $bev public function accept ...
https://man.mtool.work/php/8.3/event.examples.html
EventBase::loop — Dispatch pending events | PHP 8.3 9355
EventBase::loop (PECL event >= 1.2.6-beta) EventBase::loop — Dispatch pending events 説明 public function EventBase::loop ( int $flags = ? ): bool Wait for events to become active, and run their callbacks. 警告 Do NOT destroy the EventBase ... OP_* constants. See EventBase constants . 戻り値 成功した場合に true を、失敗した場合に false を返します。 参考 EventBase::dispatch() - Dispatch pending events 他のマニュアルの関連ページ Python constants Docker docker-compose events Linux JM fanotify_ini ...
https://man.mtool.work/php/8.3/eventbase.loop.html
定義済み定数 | PHP 8.3 9056
定義済み定数 以下の定数が定義されています。 この関数の拡張モジュールが PHP 組み込みでコンパイルされているか、 実行時に動的にロードされている場合のみ使用可能です。 SWOOLE_VERSION ( string ) Swoole version. SWOOLE_VERSION_ID ( int ) Swoole ve ... TA ( int ) Package malformed error data. SWOOLE_ERROR_TASK_PACKAGE_TOO_BIG ( int ) Task package too big. SWOOLE_ERROR_TASK_DISPATCH_FAIL ( int ) Task dispatch fail. SWOOLE_ERROR_TASK_TIMEOUT ( int ) Task timeout. SWOOLE_ERROR_HTTP2_STREAM_ID_TOO_BIG ( in ... read process accept requests. SWOOLE_SERVER_COMMAND_TASK_WORKER ( int ) Task worker thread process accept requests. SWOOLE_DISPATCH_ROUND ( int ) Round robin mode, each Worker process will be allocated sequentially for every received connection. SWOOLE_D ... ction's file descriptor. This ensures that data from the same connection will be processed by the same Worker only. SWOOLE_DISPATCH_IDLE_WORKER ( int ) The main process will choose delivery based on the workload status of the Worker, delivering only to i ...
https://man.mtool.work/php/8.3/swoole.constants.html
定義済み定数 | PHP 8.3 8836
定義済み定数 以下の定数が定義されています。 この関数の拡張モジュールが PHP 組み込みでコンパイルされているか、 実行時に動的にロードされている場合のみ使用可能です。 The following opcodes are defined as constants by uopz before 5.0.0: ZEND_EXI ... rray without recursion ZEND_USER_OPCODE_LEAVE ( int ) Return to calling op_array within the same executor ZEND_USER_OPCODE_DISPATCH ( int ) Dispatch to original opcode handler ZEND_USER_OPCODE_DISPATCH_TO ( int ) Dispatch to a specific handler (OR'd with ...
https://man.mtool.work/php/8.3/uopz.constants.html
The EventBase class | PHP 8.3 8695
The EventBase class (PECL event >= 1.2.6-beta) はじめに EventBase class represents libevent's event base structure. It holds a set of events and can poll to determine which events are active. Each event base has a method , or a backend that ... const int EPOLL_USE_CHANGELIST = 16 ; /* メソッド */ public function __construct ( EventConfig $cfg = ? ) public function dispatch (): void public function exit ( float $timeout = ? ): bool public function free (): void public function getFeatures (): i ... the event base, even if we have locking set up". EventBase::STARTUP_IOCP Windows-only configuration flag. Enables the IOCP dispatcher at startup. EventBase::NO_CACHE_TIME Configuration flag. Instead of checking the current time every time the event loop ... ct if one winds up using a backend other than epoll . 目次 EventBase::__construct — Constructs EventBase object EventBase::dispatch — Dispatch pending events EventBase::exit — Stop dispatching events EventBase::free — Free resources allocated for this ev ...
https://man.mtool.work/php/8.3/class.eventbase.html
PREV 1 2 3 4 NEXT