Event::__construct
(PECL event >= 1.2.6-beta)
Event::__construct — Constructs Event object
Description
public Event::__construct(
EventBase
mixed
int
callable
mixed
)
EventBase
$base ,mixed
$fd ,int
$what ,callable
$cb ,mixed
$arg = NULL)
Constructs Event object.
Parameters
baseThe event base to associate with.
fdstream resource, socket resource, or numeric file descriptor. For timer events pass
-1. For signal events pass the signal number, e.g.SIGHUP.whatEvent flags. See Event flags.
cbThe event callback. See Event callbacks.
argCustom data. If specified, it will be passed to the callback when event triggers.
See Also
- Event::signal() - Constructs signal event object
- Event::timer() - Constructs timer event object
↑ and ↓ to navigate • Enter to select • Esc to close • / to open