mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-09 12:28:19 -04:00
Merge remote-tracking branch 'origin/patches-2.0'
This commit is contained in:
commit
db7acd1310
@ -44,10 +44,10 @@
|
|||||||
with bufferevent_enable() and bufferevent_disable().
|
with bufferevent_enable() and bufferevent_disable().
|
||||||
|
|
||||||
When reading is enabled, the bufferevent will try to read from the
|
When reading is enabled, the bufferevent will try to read from the
|
||||||
file descriptor onto its input buffer, and and call the read callback.
|
file descriptor onto its input buffer, and call the read callback.
|
||||||
When writing is enabled, the bufferevent will try to write data onto its
|
When writing is enabled, the bufferevent will try to write data onto its
|
||||||
file descriptor when writing is enabled, and call the write callback
|
file descriptor when the output buffer has enough data, and call the write
|
||||||
when the output buffer is sufficiently drained.
|
callback when the output buffer is sufficiently drained.
|
||||||
|
|
||||||
Bufferevents come in several flavors, including:
|
Bufferevents come in several flavors, including:
|
||||||
|
|
||||||
|
@ -353,14 +353,14 @@ int event_reinit(struct event_base *base);
|
|||||||
/**
|
/**
|
||||||
Event dispatching loop
|
Event dispatching loop
|
||||||
|
|
||||||
This loop will run the event base until either there are no more added
|
This loop will run the event base until either there are no more pending or
|
||||||
events, or until something calls event_base_loopbreak() or
|
active, or until something calls event_base_loopbreak() or
|
||||||
event_base_loopexit().
|
event_base_loopexit().
|
||||||
|
|
||||||
@param base the event_base structure returned by event_base_new() or
|
@param base the event_base structure returned by event_base_new() or
|
||||||
event_base_new_with_config()
|
event_base_new_with_config()
|
||||||
@return 0 if successful, -1 if an error occurred, or 1 if no events were
|
@return 0 if successful, -1 if an error occurred, or 1 if we exited because
|
||||||
registered.
|
no events were pending or active.
|
||||||
@see event_base_loop()
|
@see event_base_loop()
|
||||||
*/
|
*/
|
||||||
int event_base_dispatch(struct event_base *);
|
int event_base_dispatch(struct event_base *);
|
||||||
@ -762,15 +762,15 @@ int event_base_set(struct event_base *, struct event *);
|
|||||||
This is a more flexible version of event_base_dispatch().
|
This is a more flexible version of event_base_dispatch().
|
||||||
|
|
||||||
By default, this loop will run the event base until either there are no more
|
By default, this loop will run the event base until either there are no more
|
||||||
added events, or until something calls event_base_loopbreak() or
|
pending or active events, or until something calls event_base_loopbreak() or
|
||||||
evenet_base_loopexit(). You can override this behavior with the 'flags'
|
event_base_loopexit(). You can override this behavior with the 'flags'
|
||||||
argument.
|
argument.
|
||||||
|
|
||||||
@param eb the event_base structure returned by event_base_new() or
|
@param eb the event_base structure returned by event_base_new() or
|
||||||
event_base_new_with_config()
|
event_base_new_with_config()
|
||||||
@param flags any combination of EVLOOP_ONCE | EVLOOP_NONBLOCK
|
@param flags any combination of EVLOOP_ONCE | EVLOOP_NONBLOCK
|
||||||
@return 0 if successful, -1 if an error occurred, or 1 if no events were
|
@return 0 if successful, -1 if an error occurred, or 1 if we exited because
|
||||||
registered.
|
no events were pending or active.
|
||||||
@see event_base_loopexit(), event_base_dispatch(), EVLOOP_ONCE,
|
@see event_base_loopexit(), event_base_dispatch(), EVLOOP_ONCE,
|
||||||
EVLOOP_NONBLOCK
|
EVLOOP_NONBLOCK
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user