Php/docs/event.construct

提供:Dev Guides
< Php
2020年12月14日 (月) 10:05時点におけるNotes (トーク | 投稿記録)による版 (autoload)
(差分) ← 古い版 | 最新版 (差分) | 新しい版 → (差分)
移動先:案内検索

Event::__construct

(PECL event >= 1.2.6-beta)

Event::__constructConstructs Event object


説明

public Event::__construct ( EventBase $base , mixed $fd , int $what , callable $cb [, mixed $arg = NULL ] )

Constructs Event object.


パラメータ

base
The event base to associate with.
fd
stream resource, socket resource, or numeric file descriptor. For timer events pass -1 . For signal events pass the signal number, e.g. SIGHUP .
what
Event flags. See Event flags .
cb
The event callback. See Event callbacks .
arg
Custom data. If specified, it will be passed to the callback when event triggers.


返り値

Returns Event object.


参考