EventListener::setCallback

(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.

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

Please login to continue.