PHPTS:一键免费搭建 Nginx + PHP + MySQL 运行环境

The EventConfig class

(PECL event >= 1.2.6-beta)

简介

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

类摘要

final EventConfig {
/* Constants */
const integer FEATURE_ET = 1 ;
const integer FEATURE_O1 = 2 ;
const integer FEATURE_FDS = 4 ;
/* 方法 */
public avoidMethod ( string $method ) : bool
public __construct ( void )
public requireFeatures ( int $feature ) : bool
public 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.

Table of Contents