Write data to a buffered event

(PECL libevent >= 0.0.1)

event_buffer_writeWrite data to a buffered event


bool event_buffer_write ( resource $bevent , string $data [, int $data_size = -1 ] )

Writes data to the specified buffered event. The data is appended to the output buffer and written to the descriptor when it becomes available for writing.

Список параметров


Valid buffered event resource.


The data to be written.


Optional size parameter. event_buffer_write() writes all the data by default.

Возвращаемые значения

event_buffer_write() returns TRUE on success or FALSE on error.