evbuffer_cb_func

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!

@param buffer the buffer whose size has changed @param info a structure describing how the buffer changed. @param arg a pointer to user data

extern (C) nothrow
alias evbuffer_cb_func = ExternC!(void function(evbuffer* buffer, const(evbuffer_cb_info)* info, void* arg))

Meta