On 2010-11-24 15:54, Sid wrote:
> Well water marks seem to be the way to go.. But before your reply came I
> saw that in the library there is an interface
>
> *struct* evbuffer_cb_info {
> size_t orig_size;
> size_t n_added;
> size_t n_deleted;
> };
>
> *typedef* *void* (*evbuffer_cb_func)(*struct* evbuffer *buffer,
> *const* *struct* evbuffer_cb_info *info, *void* *arg);
>
> described
http://www.wangafu.net/~nickm/libevent-book/Ref7_evbuffer.html
>
>
> I think this is the right way to do this stuff...
It is most definitely the *wrong* way.