略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: event_buffer_watermark_set

2024-12-21

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.

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.

官方地址:https://www.php.net/manual/en/function.event-buffer-watermark-set.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3