« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 384 for Event (0.002 sec.)
The Event class | PHP 8.3 7516
The Event class (PECL event >= 1.2.6-beta) はじめに Event class represents and event firing on a file descriptor being ready to read from or write to; a file descriptor becoming ready to read from or write to(edge-triggered I/O only); a tim ... eout expiring; a signal occurring; a user-triggered event. Every event is associated with EventBase . However, event will never fire until it is added (via Event::add() ). An added ... event remains in pending state until the registered event occurs, thus turning it to active state. To handle events user may reg ... ister a callback which is called when event becomes active. If event is configured persistent , it remains pending. If it is not persistent, it stops being pending wh ...
https://man.mtool.work/php/8.3/class.event.html
Event | PHP 8.3 7350
Event はじめに This is an extension to efficiently schedule I/O, time and signal based events using the best I/O notification mechanism available for specific platform. This is a port of libevent to the PHP infrastructure. 注意 : Note, Wind ... ows support introduced in event-1.9.0 . Version 1.0.0 introduces new object-oriented API (breaking backwards compatibility), and support of libevent 2+ in ... cluding HTTP, DNS, OpenSSL and the event listener. 注意 : Note, event-1.0.0 and greater is not compatible with previous versions. インストール/設定 要件 インストー ... ル手順 例 Event flags About event persistence Event callbacks Constructing signal events Event — The Event class Event::add — Makes event ...
https://man.mtool.work/php/8.3/book.event.html
The Swoole\Event class | PHP 8.3 6681
The Swoole\Event class (PECL swoole >= 1.9.0) はじめに The Swoole extension provides low-level interfaces to directly manipulate the underlying epoll/kqueue/poll/select event loop. It allows adding sockets created by other extensions or PHP ... 's stream/socket extensions to Swoole's EventLoop. 注意 : The Event module is low-level, being a basic encapsulation of epoll. Users should have experience with IO mult ... iplexing programming. Event Priority Signal handler callback functions set via Process::signal Timer callback functions set via Timer::tick and Timer: ... :after Deferred execution functions set via Event::defer Periodic callback functions set via Event::cycle Swoole Event Socket Type fd int File descriptors, including Swoole ...
https://man.mtool.work/php/8.3/class.swoole-event.html
Event::setTimer — Re-configures timer event | PHP 8.3 6524
Event::setTimer (PECL event >= 1.2.6-beta) Event::setTimer — Re-configures timer event 説明 public function Event::setTimer ( EventBase $base , callable $cb , mixed $arg = ? ): bool Re-configures timer event. Note, this function doesn't inv ... oke obsolete libevent's event_set . It calls event_assign instead. パラメータ base The event base to associate with. cb The timer event callback ... . See Event callbacks . arg Custom data. If specified, it will be passed to the callback when event triggers. 戻り値 成功した場合に tr ... ue を、失敗した場合に false を返します。 参考 Event::__construct() - Constructs Event object Event::timer() - Constructs timer event object 他のマニュアルの関連ページ Linux J ...
https://man.mtool.work/php/8.3/event.settimer.html
Event::__construct — Constructs Event object | PHP 8.3 6498
Event::__construct (PECL event >= 1.2.6-beta) Event::__construct — Constructs Event object 説明 public function Event::__construct ( EventBase $base , mixed $fd , int $what , callable $cb , mixed $arg = NULL ) Constructs Event object. パラメ ... ータ base The event base to associate with. fd stream resource, socket resource, or numeric file descriptor. For timer events pass -1 . For si ... gnal events pass the signal number, e.g. SIGHUP . what Event flags. See Event flags . cb The event callback. See Event callbacks . ar ... g Custom data. If specified, it will be passed to the callback when event triggers. 参考 Event::signal() - Constructs signal event object Event::timer() - Constructs timer event object 他のマニュア ...
https://man.mtool.work/php/8.3/event.construct.html
About event persistence | PHP 8.3 6481
About event persistence By default, whenever a pending event becomes active (because its file descriptor is ready to read or write, or because its timeout expires), it becomes non-pending right before its callback is executed. Thus, to make ... the event pending again one may call Event::add() on it again from inside the callback function. If the Event::PERSIST flag is set o ... n an event, however, the event is persistent . This means that event remains pending even when its callback is activated. Event::del( ... ) method can be called to make it non-pending. The timeout on a persistent event resets whenever the event's callback runs. Thus, if one has an event with flags Event::READ | Event::PERSIST and a timeout ...
https://man.mtool.work/php/8.3/event.persistence.html
Event::timer — Constructs timer event object | PHP 8.3 6481
Event::timer (PECL event >= 1.2.6-beta) Event::timer — Constructs timer event object 説明 public static function Event::timer ( EventBase $base , callable $cb , mixed $arg = ? ): Event Constructs timer event object. This is a straightforwar ... d method to create a timer event. Note, the generic Event::__construct() method can contruct signal event objects too. パラメータ base The associated event ... base object. cb The signal event callback. See Event callbacks . arg Custom data. If specified, it will be passed to the callback when event triggers. 戻り ... 値 Returns Event object on success. Otherwise false . 他のマニュアルの関連ページ Linux JM signal(2) Python signal Linux JM signal(7) Linux ...
https://man.mtool.work/php/8.3/event.timer.html
Swoole\Event::isset — Check if a socket is being monitored in the event loop | ... 6481
Swoole\Event::isset (No version information available, might only be in Git) Swoole\Event::isset — Check if a socket is being monitored in the event loop 説明 public static function Swoole\Event::isset ( mixed $fd , int $events = SWOOLE_EVENT ... NT_READ | SWOOLE_EVENT_WRITE ): bool Checks whether the specified file descriptor is being monitored for the given event types in the event loop. ... パラメータ fd File descriptor (stream/socket resource, integer, or object). events Event types to check (bitmask of SWOOLE_EVENT_READ and/or SWOOLE_EVENT_WRITE ). 戻り値 成功した場合に true を、失敗した場 ... 合に false を返します。 例 例1 Checking event monitoring status <?php $fp = stream_socket_client ( "tcp://www.qq.com:80" ); Swoole\Event :: add ( $fp , function ( $fp ) ...
https://man.mtool.work/php/8.3/swoole-event.isset.html
Swoole\Event::set — Modify event listener callbacks and mask | PHP 8.3 6463
Swoole\Event::set (PECL swoole >= 1.9.0) Swoole\Event::set — Modify event listener callbacks and mask 説明 public static function Swoole\Event::set ( mixed $sock , callable $read_callback , callable $write_callback = ? , int $flags = ? ): b ... ool Modifies the event listener callbacks and mask for the given file descriptor. 注意 : When $read_callback is not null, the readable event call ... back function will be modified to the specified function. 注意 : When $write_callback is not null, the writable event callback function will be updated to the specified function. 注意 : Setting SWOOLE_EVENT_READ alone disables write event l ... istening, while setting SWOOLE_EVENT_WRITE alone disables read event listening. 警告 Swoole\Event::set replaces callbacks but does not free them. Specifying nu ...
https://man.mtool.work/php/8.3/swoole-event.set.html
Event::signal — Constructs signal event object | PHP 8.3 6437
Event::signal (PECL event >= 1.2.6-beta) Event::signal — Constructs signal event object 説明 public static function Event::signal ( EventBase $base , int $signum , callable $cb , mixed $arg = ? ): Event Constructs signal event object. This ... is a straightforward method to create a signal event. Note, the generic Event::__construct() method can contruct signal event objects too. パラメータ base The associated event ... base object. signum The signal number. cb The signal event callback. See Event callbacks . arg Custom data. If specified, it will be passed to the callback when event triggers. 戻り ... 値 Returns Event object on success. Otherwise false . 参考 Constructing signal events 他のマニュアルの関連ページ Linux JM signal(2) Python ...
https://man.mtool.work/php/8.3/event.signal.html
PREV 1 2 3 4 5 6 7 8 9 10 NEXT