总有人间一两风,填我十万八千梦

PHP event_buffer_watermark_set 用法 手册 | 示例代码

PHP开发手册 归档 508℃ 0评论

event_buffer_watermark_set

(PECL libevent >= 0.0.1)

event_buffer_watermark_setSet the watermarks for read and write events

说明

event_buffer_watermark_set ( resource $bevent , int $events , int $lowmark , int $highmark ) : void

Sets the watermarks for read and write events. Libevent does not invoke read callback unless there is at least lowmark bytes in the input buffer; if the read buffer is beyond the highmark, reading is stopped. On output, the write callback is invoked whenever the buffered data falls below the lowmark.

参数

bevent

Valid buffered event resource.

events

Any combination of EV_READ and EV_WRITE.

lowmark

Low watermark.

highmark

High watermark.

用户贡献的笔记

There are no user contributed notes for this page.

转载请注明:悠然品鉴 » PHP event_buffer_watermark_set 用法 手册 | 示例代码

喜欢 (0)or分享 (0)
发表我的评论
取消评论

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址