EVENT_BUFFER_WATERMARK_SET(3) 1 EVENT_BUFFER_WATERMARK_SET(3)
event_buffer_watermark_set - Set the watermarks for read and write events
SYNOPSIS
void event_buffer_watermark_set (resource $bevent, int $events, int $lowmark, int $highmark)
DESCRIPTION
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.
PARAMETERS
o $bevent
- Valid buffered event resource.
o $events
- Any combination of EV_READ and EV_WRITE.
o $lowmark
- Low watermark.
o $highmark
- High watermark.
PHP Documentation Group EVENT_BUFFER_WATERMARK_SET(3)