[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[Libevent-users] evbuffer - how to read without draining data?



Hi,
I writing a eventbuffer socket app. My app packet have a length
header, I want to read data only when input buffer length > packet
length(I need to read the length header first). But it seems like I
can't read from evbuffer without draining data. Is there a way to do
that?
***********************************************************************
To unsubscribe, send an e-mail to majordomo@xxxxxxxxxxxxx with
unsubscribe libevent-users    in the body.