EventBufferEvent::setCallbacks

EventBufferEvent::setCallbacks

(PECL event >= 1.2.6-beta)

EventBufferEvent::setCallbacksAssigns read, write and event(status) callbacks

Description

public void EventBufferEvent::setCallbacks (  callable $readcb  ,  callable $writecb  ,  callable $eventcb  [,  string $arg  ] )

Assigns read, write and event(status) callbacks.

Parameters

readcb

Read event callback. See About buffer event callbacks .

writecb

Write event callback. See About buffer event callbacks .

eventcb

Status-change event callback. See About buffer event callbacks .

arg

A variable that will be passed to all the callbacks.

Return Values

No value is returned.

See Also

© 1997–2017 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://secure.php.net/manual/en/eventbufferevent.setcallbacks.php

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部