(PECL event >= 1.2.6-beta)
Event::__construct — Constructs Event object
$base
,$fd
,$what
,$cb
,$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.
Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!
Check out: eBank.nz (Art Generator) |
Netwrck.com (AI Tools) |
Text-Generator.io (AI API) |
BitBank.nz (Crypto AI) |
ReadingTime (Kids Reading) |
RewordGame |
BigMultiplayerChess |
WebFiddle |
How.nz |
Helix AI Assistant