Event::__construct
(PECL event >= 1.2.6-beta)
Event::__construct — Constructs Event object
説明
public
Event::__construct(
EventBase
mixed
int
callable
mixed
)
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.
参考
- Event::signal() - Constructs signal event object
- Event::timer() - Constructs timer event object
+add a note
User Contributed Notes
There are no user contributed notes for this page.
↑ and ↓ to navigate •
Enter to select •
Esc to close
Press Enter without
selection to search using Google