| evbuffer_compat(3) | Library Functions Manual | evbuffer_compat(3) |
evbuffer_compat - Obsolete and deprecated versions of the functions in buffer.h: provided only for backward compatibility.
#include <event2/buffer_compat.h>
#include <event2/visibility.h>
#define EVBUFFER_DATA(x) evbuffer_pullup((x), -1)
deprecated in favor of calling the functions directly #define
EVBUFFER_LENGTH(x) evbuffer_get_length(x)
deprecated in favor of calling the functions directly
typedef void(* evbuffer_cb) (struct evbuffer
*buffer, size_t old_len, size_t new_len, void *arg)
Type definition for a callback that is invoked whenever data is added or
removed from an evbuffer.
EVENT2_EXPORT_SYMBOL unsigned char * evbuffer_find (struct
evbuffer *buffer, const unsigned char *what, size_t len)
Find a string within an evbuffer. EVENT2_EXPORT_SYMBOL char *
evbuffer_readline (struct evbuffer *buffer)
Obsolete alias for evbuffer_readln(buffer, NULL, EVBUFFER_EOL_ANY).
EVENT2_EXPORT_SYMBOL void evbuffer_setcb (struct evbuffer
*buffer, evbuffer_cb cb, void *cbarg)
Replace all callbacks on an evbuffer with a single new callback, or remove
them.
Obsolete and deprecated versions of the functions in buffer.h: provided only for backward compatibility.
Type definition for a callback that is invoked whenever data is added or removed from an evbuffer. An evbuffer may have one or more callbacks set at a time. The order in which they are executed is undefined.
A callback function may add more callbacks, or remove itself from the list of callbacks, or add or remove data from the buffer. It may not remove another callback from the list.
If a callback adds or removes data from the buffer or from another buffer, this can cause a recursive invocation of your callback or other callbacks. If you ask for an infinite loop, you might just get one: watch out!
Parameters:
Find a string within an evbuffer.
Parameters:
Returns:
Obsolete alias for evbuffer_readln(buffer, NULL, EVBUFFER_EOL_ANY).
Deprecated
Parameters:
Returns:
Replace all callbacks on an evbuffer with a single new callback, or remove them. Subsequent calls to evbuffer_setcb() replace callbacks set by previous calls. Setting the callback to NULL removes any previously set callback.
Deprecated
Parameters:
Generated automatically by Doxygen for libevent from the source code.
| Tue Jan 31 2017 | libevent |