« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 15 for EventConfig (0.001 sec.)
The EventConfig class | PHP 8.3 12243
The EventConfig class (PECL event >= 1.2.6-beta) はじめに Represents configuration structure which could be used in construction of the EventBase . クラス概要 final class EventConfig { /* 定数 */ const int FEATURE_ET = 1 ; const int FEATURE ... public function setMaxDispatchInterval ( int $max_interval , int $max_callbacks , int $min_priority ): void } 定義済み定数 EventConfig::FEATURE_ET Requires a backend method that supports edge-triggered I/O. EventConfig::FEATURE_O1 Requires a backend method ... where adding or deleting a single event, or having a single event become active, is an O(1) operation. EventConfig::FEATURE_FDS Requires a backend method that can support arbitrary file descriptor types, and not just sockets. 目次 EventC ... onfig::avoidMethod — Tells libevent to avoid specific event method EventConfig::__construct — Constructs EventConfig object EventConfig::requireFeatures — Enters a required event method feature that th ...
https://man.mtool.work/php/8.3/class.eventconfig.html
EventConfig::__construct — Constructs EventConfig object | PHP 8.3 11128
EventConfig::__construct (PECL event >= 1.2.6-beta) EventConfig::__construct — Constructs EventConfig object 説明 public function EventConfig::__construct () Constructs EventConfig object which could be passed to EventBase::__construct() co ... nstructor. パラメータ この関数にはパラメータはありません。 例 例1 EventConfig::__construct() example <?php // Avoiding "select" method $cfg = new EventConfig (); if ( $cfg -> avoidMethod ( "select" )) ...
https://man.mtool.work/php/8.3/eventconfig.construct.html
EventConfig::requireFeatures — Enters a required event method feature that the ... 10902
EventConfig::requireFeatures (PECL event >= 1.2.6-beta) EventConfig::requireFeatures — Enters a required event method feature that the application demands 説明 public function EventConfig::requireFeatures ( int $feature ): bool Enters a req ... uired event method feature that the application demands パラメータ feature Bitmask of required features. See EventConfig::FEATURE_* constants 戻り値 成功した場合に true を、失敗した場合に false を返します。 例 例1 EventConfig::requireFeatures( ... ) example <?php $cfg = new EventConfig (); // Create event_base associated with the config $base = new EventBase ( $cfg ); // Require FDS feature if ( $cfg -> re ... quireFeatures ( EventConfig :: FEATURE_FDS )) { echo "FDS feature is now required\n" ; $base = new EventBase ( $cfg ); ( $base -> getFeatures () & Eve ...
https://man.mtool.work/php/8.3/eventconfig.requirefeatures.html
EventConfig::avoidMethod — Tells libevent to avoid specific event method | PHP ... 10501
EventConfig::avoidMethod (PECL event >= 1.2.6-beta) EventConfig::avoidMethod — Tells libevent to avoid specific event method 説明 public function EventConfig::avoidMethod ( string $method ): bool Tells libevent to avoid specific event metho ... d(backend). See » Creating an event base . パラメータ method The backend method to avoid. See EventConfig constants . 戻り値 成功した場合に true を、失敗した場合に false を返します。 例 例1 EventConfig::avoidMethod() example <?p ... hp $cfg = new EventConfig (); if ( $cfg -> avoidMethod ( "select" )) { echo "'select' method avoided\n" ; } ?> 参考 EventBase::__construct() - Const ...
https://man.mtool.work/php/8.3/eventconfig.avoidmethod.html
EventBase::getFeatures — Returns bitmask of features supported | PHP 8.3 9909
EventBase::getFeatures (PECL event >= 1.2.6-beta) EventBase::getFeatures — Returns bitmask of features supported 説明 public function EventBase::getFeatures (): int Returns bitmask of features supported. パラメータ この関数にはパラメータはあ ... りません。 戻り値 Returns integer representing a bitmask of supported features. See EventConfig::FEATURE_* constants . 例 例1 EventBase::getFeatures() example <?php // Avoiding "select" method $cfg = new EventConfig () ... hod avoided\n" ; } $base = new EventBase ( $cfg ); echo "Features:\n" ; $features = $base -> getFeatures (); ( $features & EventConfig :: FEATURE_ET ) and print "ET - edge-triggered IO\n" ; ( $features & EventConfig :: FEATURE_O1 ) and print "O1 - O(1) oper ... ation for adding/deleting events\n" ; ( $features & EventConfig :: FEATURE_FDS ) and print "FDS - arbitrary file descriptor types, and not just sockets\n" ; ?> 参考 EventBase::getMethod( ...
https://man.mtool.work/php/8.3/eventbase.getfeatures.html
EventBase::__construct — Constructs EventBase object | PHP 8.3 8795
EventBase::__construct (PECL event >= 1.2.6-beta) EventBase::__construct — Constructs EventBase object 説明 public function EventBase::__construct ( EventConfig $cfg = ? ) Constructs EventBase object パラメータ cfg Optional EventConfig obje ... t. エラー / 例外 If EventBase cannot be constructed with the provided configuration, a EventException will be thrown. 参考 EventConfig ...
https://man.mtool.work/php/8.3/eventbase.construct.html
EventConfig::setFlags — Sets one or more flags that configure how the eventual ... 8446
EventConfig::setFlags (PECL event >= 2.0.2-alpha) EventConfig::setFlags — Sets one or more flags that configure how the eventual EventBase will be initialized 説明 public function EventConfig::setFlags ( int $flags ): bool Sets one or more ...
https://man.mtool.work/php/8.3/eventconfig.setflags.html
Event | PHP 8.3 8307
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 ... fferEvent::writeBuffer — Adds contents of the entire buffer to a buffer event's output buffer About buffer event callbacks EventConfig — The EventConfig class EventConfig::avoidMethod — Tells libevent to avoid specific event method EventConfig::__construct ... — Constructs EventConfig object EventConfig::requireFeatures — Enters a required event method feature that the application demands EventConfig::set ... Flags — Sets one or more flags that configure how the eventual EventBase will be initialized EventConfig::setMaxDispatchInterval — Prevents priority inversion EventDnsBase — The EventDnsBase class EventDnsBase::addNameserverIp ...
https://man.mtool.work/php/8.3/book.event.html
EventConfig::setMaxDispatchInterval — Prevents priority inversion | PHP 8.3 8081
EventConfig::setMaxDispatchInterval (PECL event >= 2.1.0-alpha) EventConfig::setMaxDispatchInterval — Prevents priority inversion 説明 public function EventConfig::setMaxDispatchInterval ( int $max_interval , int $max_callbacks , int $min_p ...
https://man.mtool.work/php/8.3/eventconfig.setmaxdispatchinterval.html
The EventBase class | PHP 8.3 7140
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 ... e: select , poll , epoll , kqueue , devpoll , evport and win32 . To configure event base to use, or avoid specific backend EventConfig class can be used. 警告 Do NOT destroy the EventBase object as long as resources of the associated Event objects are not r ... OCP = 4 ; const int NO_CACHE_TIME = 8 ; const int EPOLL_USE_CHANGELIST = 16 ; /* メソッド */ public function __construct ( EventConfig $cfg = ? ) public function dispatch (): void public function exit ( float $timeout = ? ): bool public function free (): vo ...
https://man.mtool.work/php/8.3/class.eventbase.html
PREV 1 2 NEXT