EventBufferEvent::connectHost

(PECL event >= 1.2.6-beta) Connects to a hostname with optionally asyncronous DNS resolving public bool EventBufferEvent::connectHost ( EventDnsBase $dns_base , string $hostname , int $port [, int $family = EventUtil::AF_UNSPEC ] ) Resolves the DNS name hostname, looking for addresses of type family ( EventUtil::AF_* constants). If the name resolution fails, it invokes the event callback with an error event. If it succe

EventBufferEvent::connect

(PECL event >= 1.2.6-beta) Connect buffer event's file descriptor to given address or UNIX socket public bool EventBufferEvent::connect ( string $addr ) Connect buffer event's file descriptor to given address(optionally with port), or a UNIX domain socket. If socket is not assigned to the buffer event, this function allocates a new socket and makes it non-blocking internally. To resolve DNS names(asyncronously), use

EventBufferEvent::close

(PECL event >= 1.10.0) Closes file descriptor associated with the current buffer event public void EventBufferEvent::close ( void ) Closes file descriptor associated with the current buffer event. This method may be used in cases when the EventBufferEvent::OPT_CLOSE_ON_FREE option is not appropriate. Returns: No value is returned.

EventBuffer::write

(PECL event >= 1.6.0) Write contents of the buffer to a file or socket public int EventBuffer::write ( mixed $fd [, int $howmuch ] ) Write contents of the buffer to a file descriptor. The buffer will be drained after the bytes have been successfully written. Parameters: fd Socket resource, stream or numeric file descriptor associated normally associated with a socket

EventBuffer::unlock

(PECL event >= 1.2.6-beta) Releases lock acquired by EventBuffer::lock public bool EventBuffer::unlock ( void ) Releases lock acquired by EventBuffer::lock() . Returns: Returns TRUE on success. Otherwise FALSE. See also: EventBuffer::lock() -

EventBuffer::unfreeze

(PECL event >= 1.2.6-beta) Re-enable calls that modify an event buffer public bool EventBuffer::unfreeze ( bool $at_front ) Re-enable calls that modify an event buffer. Parameters: at_front Whether to enable events at the front or at the end of the buffer. Returns: Returns TRUE on success. Otherwise FALSE.

EventBuffer::substr

(PECL event >= 1.6.0) Substracts a portion of the buffer data public string EventBuffer::substr ( int $start [, int $length ] ) Substracts up to length bytes of the buffer data beginning at start position. Parameters: start The start position of data to be substracted. length Maximum number of bytes to substract.

EventBuffer::searchEol

(PECL event >= 1.5.0) Scans the buffer for an occurrence of an end of line public mixed EventBuffer::searchEol ([ int $start = -1 [, int $eol_style = EventBuffer::EOL_ANY ]] ) Scans the buffer for an occurrence of an end of line specified by eol_style parameter . It returns numeric position of the string, or FALSE if the string was not found. If the start argument is provided, it represents the position at which the

EventBuffer::search

(PECL event >= 1.2.6-beta) Scans the buffer for an occurrence of a string public mixed EventBuffer::search ( string $what [, int $start = -1 [, int $end = -1 ]] ) Scans the buffer for an occurrence of the string what . It returns numeric position of the string, or FALSE if the string was not found. If the start argument is provided, it points to the position at which the search should begin; otherwise, the search is

EventBuffer::readLine

(PECL event >= 1.2.6-beta) Extracts a line from the front of the buffer public string EventBuffer::readLine ( int $eol_style ) Extracts a line from the front of the buffer and returns it in a newly allocated string. If there is not a whole line to read, the function returns NULL. The line terminator is not included in the copied string. Parameters: eol_style One of Ev