Lines Matching +full:negative +full:- +full:reference +full:- +full:buffer

2  * Copyright (c) 2000-2007 Niels Provos <provos@citi.umich.edu>
3 * Copyright (c) 2007-2012 Niels Provos and Nick Mathewson
47 file descriptor onto its input buffer, and call the read callback.
49 file descriptor when the output buffer has enough data, and call the write
50 callback when the output buffer is sufficiently drained.
55 <dt>Socket-based bufferevents</dt>
69 <dt>SSL-backed bufferevents</dt>
83 #include <event2/event-config.h>
104 #define BEV_EVENT_TIMEOUT 0x40 /**< user-specified timeout reached */
126 buffer and the amount of readable data exceed the low watermark
129 The write callback is triggered if the write buffer has been
133 @param ctx the user-specified context for this bufferevent
152 @param ctx the user-specified context for this bufferevent
182 It is safe to set the fd to -1, so long as you later
193 Launch a connect() attempt with a socket-based bufferevent.
209 @return 0 on success, -1 on failure.
228 @return 0 if successful, -1 on failure.
264 @return 0 if successful, or -1 if an error occurred
283 @return 0 if successful, or -1 if an error occurred
359 Returns the file descriptor associated with a bufferevent, or -1 if
373 Write data to a bufferevent buffer.
376 descriptor. The data is appended to the output buffer and written to the
382 @return 0 if successful, or -1 if an error occurred
391 Write data from an evbuffer to a bufferevent buffer. The evbuffer is
396 @return 0 if successful, or -1 if an error occurred
404 Read data from a bufferevent buffer.
406 The bufferevent_read() function is used to read data from the input buffer.
409 @param data pointer to a buffer that will store the data
410 @param size the size of the data buffer, in bytes
417 Read data from a bufferevent buffer into an evbuffer. This avoids
422 @return 0 if successful, or -1 if an error occurred.
428 Returns the input buffer.
430 The user MUST NOT set the callback on this buffer.
433 @return the evbuffer object for the input buffer
440 Returns the output buffer.
442 The user MUST NOT set the callback on this buffer.
445 triggered if the output buffer was manipulated.
448 @return the evbuffer object for the output buffer
459 @return 0 if successful, or -1 if an error occurred
470 @return 0 if successful, or -1 if an error occurred
502 EV_WRITE) becomes disabled until you re-enable it again. The
519 there is at least low watermark data in the buffer. If the read buffer
521 But be aware that bufferevent input/read buffer can overrun high watermark
527 not to write more bytes to this buffer than the high watermark would allow,
542 Returns non-zero if events contains not only EV_READ or EV_WRITE.
570 * Public interface to manually increase the reference count of a bufferevent
571 * this is useful in situations where a user may reference the bufferevent
581 * Public interface to manually decrement the reference count of a bufferevent
585 * with a bufferevent if the reference count hits 0.
615 @return -1 on failure, 0 if no data was produces, 1 if data was produced
691 it will overflow the high-water mark associated with dst.
692 -1 means "no limit".
695 or flush as much as we can, possibly including an end-of-stream
697 @param ctx A user-supplied pointer.
738 @return 0 on success, -1 on failure.
752 Abstract type used to configure rate-limiting on a bufferevent or a group
763 /** Maximum configurable rate- or burst-limit. */
767 Initialize and return a new object to configure the rate-limiting behavior
779 Note that all rate-limits hare are currently best-effort: future versions
790 Note: 'cfg' is not currently reference-counted; it is not safe to free it
797 Set the rate-limit of a the bufferevent 'bev' to the one specified in
798 'cfg'. If 'cfg' is NULL, disable any per-bufferevent rate-limiting on
801 Note that only some bufferevent types currently respect rate-limiting.
802 They are: socket-based bufferevents (normal and IOCP-based), and SSL-based
805 Return 0 on success, -1 on failure.
812 Create a new rate-limit group for bufferevents. A rate-limit group
819 @param cfg The rate-limit for this group.
821 Note that all rate-limits hare are currently best-effort: future versions
824 Note also that only some bufferevent types currently respect rate-limiting.
825 They are: socket-based bufferevents (normal and IOCP-based), and SSL-based
833 Change the rate-limiting settings for a given rate-limiting group.
835 Return 0 on success, -1 on failure.
847 behavior, if a rate-limiting group is so tight on bandwidth that you're
854 The default min-share is currently 64 bytes.
856 Returns 0 on success, -1 on failure.
863 Free a rate-limiting group. The group must have no members when
873 A bufferevent may belong to no more than one rate-limit group at a time.
877 Return 0 on success and -1 on failure.
883 /** Remove 'bev' from its current rate-limit group (if any). */
892 Return 0 on success and -1 on failure.
902 Return 0 on success and -1 on failure.
919 If it is not configured with a per-bufferevent ratelimit, return
921 Note that it can return a negative value if the bufferevent has been
944 group. Note that it can return a negative value if bufferevents in
961 The decrement value can be negative, if you want to manually refill
967 Returns 0 on success, -1 on internal error.
980 Subtract a number of bytes from a bufferevent rate-limiting group's
981 read or write bucket. The decrement value can be negative, if you
986 Returns 0 on success, -1 on internal error.