(PECL event >= 1.2.6-beta)
The setCallback purpose
public void EventListener::setCallback ( callable $cb [, mixed $arg = NULL ] )
Adjust event connect listener's callback and optionally the callback argument.
Parameters:
cb
The new callback for new connections. Ignored if NULL
.
Should match the following prototype:
void callback ([ EventListener
$listener
= NULL
[, mixed $fd
= NULL
[, array $address
= NULL
[, mixed $arg
= NULL
]]]] )
arg
Custom user data attached to the callback. Ignored if NULL
.
Returns:
No value is returned.
Please login to continue.