On Thu, Aug 05, 2010 at 02:09:50PM -0400, Nick Mathewson wrote:
> Right. The read callback is invoked when more data *arrives,* not
> whenever there is data.
>
> If you want it to handle all the data, why not just use a loop:
>
>while (evbuffer_get_length(data) >= some_size) {
>/* ..
On Thu, Aug 5, 2010 at 2:13 PM, Mark Ellzey wrote:
>
> This is an odd question that hopefully someone can help me out with. I
> have a function right now that looks a bit like this:
>
> void
> read_data(struct bufferevent *bev, void *args) {
> evbuffer *data;
>
> data = bufferevent_g
This is an odd question that hopefully someone can help me out with. I
have a function right now that looks a bit like this:
void
read_data(struct bufferevent *bev, void *args) {
evbuffer *data;
data = bufferevent_get_input(bev)
if (evbuffer_get_length(data) < some_size) {