EventConfig 類

(PECL event >= 1.2.6-beta)

簡介

表示可以實(shí)例化 EventBase 的配置結(jié)構(gòu)。

類摘要

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

預(yù)定義常量

EventConfig::FEATURE_ET

需要支持邊緣觸發(fā) I/O 的后端方法。

EventConfig::FEATURE_O1

要求添加/刪除 event 或者使 event 成為活躍的后端方法是O(1)操作。

EventConfig::FEATURE_FDS

需要一個可以支持任何文件描述符類型的后端方法,而不僅僅是 socket 。

目錄