You can check the length of the data in the input or output buffer of a bufferedevent via:
EVBUFFER_LENGTH(evbuf->input) or EVBUFFER_LENGTH(evbuf->output) This somewhat violates the opaqueness of internal data structures but I have not yet found a better way to deal with this. Niels. On 11/24/05, Morgan Jones <[EMAIL PROTECTED]> wrote: > Is there a way to tell the size of the write/read buffer when using a struct > bufferevent, without modifying libevent? > I'm certain the error I'm debugging is in my code, but with all the > nonblocking and buffering I'm trying to make sure that the data is actually > getting from box to box. > > If I could verify the amount of data in the buffer it would help narrow > down which side the problem is on... > > Anyone have any ideas?? I saw some macro's but I'm not certain how/if I > should use them. > > Thanks, Morgan > > > > ________________________________ > Yahoo! Personals > Single? There's someone we'd like you to meet. > Lot's of someone's, actually. Try Yahoo! Personals > > > _______________________________________________ > Libevent-users mailing list > [email protected] > http://monkey.org/mailman/listinfo/libevent-users > > > _______________________________________________ Libevent-users mailing list [email protected] http://monkey.org/mailman/listinfo/libevent-users
