EventBufferEvent::createPair

(PECL event >= 1.2.6-beta)

EventBufferEvent::createPairCreates two buffer events connected to each other

说明

public static EventBufferEvent::createPair ( EventBase $base [, int $options = 0 ] ) : array

Returns array of two EventBufferEvent objects connected to each other. All the usual options are supported, except for EventBufferEvent::OPT_CLOSE_ON_FREE , which has no effect, and EventBufferEvent::OPT_DEFER_CALLBACKS , which is always on.

参数

base

Associated event base

options

EventBufferEvent::OPT_* constants combined with bitwise OR operator.

返回值

Returns array of two EventBufferEvent objects connected to each other.

更新日志

版本 说明
1.9.0 Method made static.

相关文章
php eventbufferevent closes file descriptor associated with the current buffer eventphp eventbufferevent connect buffer event s file descriptor to given address or unix socketphp eventbufferevent creates two buffer events connected to each otherphp eventbufferevent disable events read write or both on a buffer eventphp eventbufferevent enable events read write or both on a buffer eventphp eventbufferevent free a buffer eventphp eventbufferevent returns bitmask of events currently enabled on the buffer eventphp eventbufferevent returns underlying input buffer associated with current buffer eventphp eventbufferevent returns underlying output buffer associated with current buffer eventphp eventbufferevent read buffer s dataphp eventbufferevent drains the entire contents of the input buffer and places them into bufphp eventbufferevent set the read and write timeout for a buffer eventphp eventbufferevent returns most recent openssl error reported on the buffer eventphp eventbufferevent create a new ssl buffer event to send its data over another buffer eventphp eventbufferevent creates a new ssl buffer event to send its data over an ssl on a socketphp eventbufferevent adds data to a buffer event s output bufferphp eventbufferevent adds contents of the entire buffer to a buffer event s output bufferphp com 函数 performs a bitwise and operation between two variantsphp imagick creates a high contrast two color imagephp quickhashintset this factory method creates a set from a string
关注编程学问公众号