Home > Article > Backend Development > Basic introduction to PHP libevent function php libevent libevent udp linux libevent
event_base_free() releases resources, this cannot destroy bound events
event_base_loop() handles events and processes the event loop according to the specified base
event_base_loopbreak() immediately cancels the event loop, and the behavior is the same for each break statement
event_base_loopexit() exits the loop after the specified time
event_base_new() creates and initializes events
event_base_priority_init() sets the priority of the event
event_base_set() associates events to event base
event_buffer_base_set() associates cached events to event_base
event_buffer_disable() disables a cached event
event_buffer_enable() enables a specified buffered event
event_buffer_fd_set() changes a cached file system description
event_buffer_free() releases cached events
event_buffer_new() creates a new buffer event
event_buffer_priority_set() cache event priority setting
event_buffer_read() reads data in cached events
event_buffer_set_callback() sets or resets the callback hansh function for cached events
event_buffer_timeout_set() sets the timeout read and write time for a cached event
event_buffer_watermark_set sets the watermark of read and write events
event_buffer_write() writes data to the cache event
event_add() adds an execution event to the specified setting
event_del() removes an event from the set events
event_free() clears the event handle
event_new() creates a new event
event_set() Prepare to add events in event_add
The above has introduced the basic introduction of PHP libevent function, including the content of libevent. I hope it will be helpful to friends who are interested in PHP tutorials.