EventBuffer::copyout

(PECL event >= 1.2.6-beta) Copies out specified number of bytes from the front of the buffer public int EventBuffer::copyout ( string &$data , int $max_bytes ) Behaves just like EventBuffer::read() , but does not drain any data from the buffer. I.e. it copies the first max_bytes bytes from the front of the buffer into data . If there are fewer than max_bytes bytes available, the function copies all the bytes there ar

EventBuffer::__construct

(PECL event >= 1.2.6-beta) Constructs EventBuffer object public EventBuffer::__construct ( void ) Constructs EventBuffer object Returns: Returns EventBuffer object.

EventBuffer::appendFrom

(PECL event >= 1.6.0) Moves the specified number of bytes from a source buffer to the end of the current buffer public int EventBuffer::appendFrom ( EventBuffer $buf , int $len ) Moves the specified number of bytes from a source buffer to the end of the current buffer. If there are fewer number of bytes, it moves all the bytes available from the source buffer. Parameters: buf

EventBuffer::addBuffer

(PECL event >= 1.2.6-beta) Move all data from a buffer provided to the current instance of EventBuffer public bool EventBuffer::addBuffer ( EventBuffer $buf ) Move all data from the buffer provided in buf parameter to the end of current EventBuffer . This is a destructive add. The data from one buffer moves into the other buffer. However, no unnecessary memory copies occur. Parameters:

EventBuffer::add

(PECL event >= 1.2.6-beta) Append data to the end of an event buffer public bool EventBuffer::add ( string $data ) Append data to the end of an event buffer. Parameters: data String to be appended to the end of the buffer. Returns: Returns TRUE on success. Otherwise FALSE. See

EventBase::stop

(PECL event >= 1.2.6-beta) Tells event_base to stop dispatching events public bool EventBase::stop ( void ) Tells event_base to stop dispatching events Returns: Returns TRUE on success. Otherwise FALSE. See also: EventBase::exit() - EventBase::gotStop() -

EventBase::reInit

(PECL event >= 1.2.6-beta) Re-initialize event base(after a fork). public bool EventBase::reInit ( void ) Re-initialize event base. Should be called after a fork. Returns: Returns TRUE on success. Otherwise FALSE.

EventBase::priorityInit

(PECL event >= 1.2.6-beta) Sets number of priorities per event base public bool EventBase::priorityInit ( int $n_priorities ) Sets number of priorities per event base. Parameters: n_priorities The number of priorities per event base. Returns: Returns TRUE on success, otherwise FALSE.

EventBase::loop

(PECL event >= 1.2.6-beta) Dispatch pending events public bool EventBase::loop ([ int $flags ] ) Wait for events to become active, and run their callbacks. Parameters: flags Optional flags. One of EventBase::LOOP_* constants. See EventBase constants . Returns: Returns TRUE on success. Otherwise FALSE. Do

EventBase::gotStop

(PECL event >= 1.2.6-beta) Checks if the event loop was told to exit public bool EventBase::gotStop ( void ) Checks if the event loop was told to exit by EventBase::stop() . Returns: Returns TRUE, event loop was told to stop by EventBase::stop() . Otherwise FALSE. See also: EventBase::exit() -