Event::__construct

(PECL event >= 1.2.6-beta)
Constructs Event object
public Event::__construct ( EventBase $base , mixed $fd , int $what , callable $cb [, mixed $arg = NULL ] )

Constructs Event object.

Parameters:
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:

Returns Event object.

See also:

Event::signal() -

Event::timer() -

doc_php
2016-02-24 16:08:08
Comments
Leave a Comment

Please login to continue.