event_free

(PECL libevent >= 0.0.1) Free event resource void event_free ( resource $event ) Frees previously created event resource. Parameters: event Valid event resource.

event_del

(PECL libevent >= 0.0.1) Remove an event from the set of monitored events bool event_del ( resource $event ) Cancels the event. Parameters: event Valid event resource. Returns: event_del() returns TRUE on success or FALSE on error.

event_buffer_write

(PECL libevent >= 0.0.1) Write 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. Parameters: bevent Valid buffered event resource. d

event_buffer_watermark_set

(PECL libevent >= 0.0.1) Set the watermarks for read and write events void event_buffer_watermark_set ( resource $bevent, int $events, int $lowmark, int $highmark ) 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

event_buffer_timeout_set

(PECL libevent >= 0.0.1) Set read and write timeouts for a buffered event void event_buffer_timeout_set ( resource $bevent, int $read_timeout, int $write_timeout ) Sets the read and write timeouts for the specified buffered event. Parameters: bevent Valid buffered event resource. read_timeout Read timeout (in seconds).

event_buffer_set_callback

(PECL libevent >= 0.0.4) Set or reset callbacks for a buffered event bool event_buffer_set_callback ( resource $event, mixed $readcb, mixed $writecb, mixed $errorcb [, mixed $arg ] ) Sets or changes existing callbacks for the buffered event. Parameters: event Valid buffered event resource. readcb Callback to invoke where there is dat

event_buffer_read

(PECL libevent >= 0.0.1) Read data from a buffered event string event_buffer_read ( resource $bevent, int $data_size ) Reads data from the input buffer of the buffered event. Parameters: bevent Valid buffered event resource. data_size Data size in bytes.

event_buffer_priority_set

(PECL libevent >= 0.0.1) Assign a priority to a buffered event bool event_buffer_priority_set ( resource $bevent, int $priority ) Assign a priority to the bevent. Parameters: bevent Valid buffered event resource. priority Priority level. Cannot be less than zero and cannot exceed maximum priority level of the event base (see event_ba

event_buffer_new

(PECL libevent >= 0.0.1) Create new buffered event resource event_buffer_new ( resource $stream, mixed $readcb, mixed $writecb, mixed $errorcb [, mixed $arg ] ) Libevent provides an abstraction layer on top of the regular event API. Using buffered event you don't need to deal with the I/O manually, instead it provides input and output buffers that get filled and drained automatically. Parameters:

event_buffer_free

(PECL libevent >= 0.0.1) Destroy buffered event void event_buffer_free ( resource $bevent ) Destroys the specified buffered event and frees all the resources associated. Parameters: bevent Valid buffered event resource.