phpday 2027 - Call for Papers

The EventConfig class

(PECL event >= 1.2.6-beta)

Giriş

Represents configuration structure which could be used in construction of the EventBase.

Sınıf Sözdizimi

final class EventConfig {
/* Sabitler */
const int FEATURE_ET = 1;
const int FEATURE_O1 = 2;
const int FEATURE_FDS = 4;
/* Yöntemler */
public function avoidMethod( string $method ): bool
public function __construct()
public function requireFeatures( int $feature ): bool
public function setFlags( int $flags ): bool
public function setMaxDispatchInterval( int $max_interval , int $max_callbacks , int $min_priority ): void
}

Öntanımlı Sabitler

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.

İçindekiler

User Contributed Notes

There are no user contributed notes for this page.
Adding new notes is disabled. Please see the links in the Found A Problem? section.
To Top