downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

event_base_free> <Libevent Functions
[edit] Last updated: Fri, 18 May 2012

view this page in

event_add

(PECL libevent >= 0.0.1)

event_addAdd an event to the set of monitored events

Description

bool event_add ( resource $event [, int $timeout = -1 ] )

event_add() schedules the execution of the event when the event specified in event_set() occurs or in at least the time specified by the timeout argument. If timeout was not specified, not timeout is set. The event must be already initalized by event_set() and event_base_set() functions. If the event already has a timeout set, it is replaced by the new one.

Parameters

event

Valid event resource.

timeout

Optional timeout (in microseconds).

Return Values

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



add a note add a note User Contributed Notes event_add
There are no user contributed notes for this page.

 
show source | credits | sitemap | contact | advertising | mirror sites