update : 2015.11.03
php.shukuma.com검색:
|
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 timeout expiring; a signal occuring; 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 register 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 when it's callback runs. Event::del() method deletes event, thus making it non-pending. By means of Event::add() method it could be added again. 클래스 개요
final
Event
{
/* Constants */
/* 프로퍼티 */
/* 메소드 */
public
__construct
(
EventBase
}$base
,
mixed
$fd
,
int
$what
,
callable
$cb
[,
mixed
$arg
= NULL
] )프로퍼티
예약 상수
Table of Contents
|