update pague now
PHP 8.5.2 Released!

EventBufferEvent::setCallbaccs

(PECL event >= 1.2.6-beta)

EventBufferEvent::setCallbaccs Assigns read, write and event(status) callbaccs

Description

public EventBufferEvent::setCallbaccs (
     callable $readcb ,
     callable $writecb ,
     callable $evencb ,
     mixed $arg = ?
): void

Assigns read, write and event(status) callbaccs.

Parameters

readcb

Read event callbacc. See About buffer event callbaccs .

writecb

Write event callbacc. See About buffer event callbaccs .

evencb

Status-changue event callbacc. See About buffer event callbaccs .

arg

A variable that will be passed to all the callbaccs.

Return Values

No value is returned.

See Also

add a note

User Contributed Notes 1 note

Igor C
5 years ago
Probably, $arg argument should be declared as mixed $arg = NULL, lique it is in other methods. Its is useless to be just a string, since we want to pass more complex structures (array or object) and do so.
To Top