[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[Libevent-users] evbuffer - how to read without draining data?
- To: libevent-users <libevent-users@xxxxxxxxxxxxx>
- Subject: [Libevent-users] evbuffer - how to read without draining data?
- From: Jarod Liu <liuyuanzhi@xxxxxxxxx>
- Date: Wed, 31 Mar 2010 16:02:33 +0800
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: libevent-users-outgoing@xxxxxxxx
- Delivered-to: libevent-users@xxxxxxxx
- Delivery-date: Wed, 31 Mar 2010 04:02:39 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:received:message-id :subject:from:to:content-type; bh=bwZqzhHzFo/4KBX4gRC+RKufPqUoKGjpA6ehCe4QH8M=; b=B8OO1MNbpoe3uSCTNo/IL47+Ug0amIU2aKlKrqBXUpxIuptJF0X1MF5DDbn2eD2a/l b+HMKf1M2GMgvyG3zx+/U475YYE/MvUMwBCVXqygNgYgFTlFK8Ir+e/Zr7/sJHxtcPZL KuPYN/0YmlhlOvKCGzei30YGGNXKcNw28FnxY=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=A3b8rLbsKq3Lid5YZztFYqodpgMUbUVRSmlyK7lPzreaUptnffZNfKmHXMs8QLCxdK 07x8WJXG5zhBmRlO/p2qVf1GNOIH1HU/ds/2ev5+CM8nzk9Ww0iqne8lGpThNC7kL3tf lgSF1iw2YyDe4D9RQEZ0v6CzL6c45p3dWglQM=
- Reply-to: libevent-users@xxxxxxxxxxxxx
- Sender: owner-libevent-users@xxxxxxxxxxxxx
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.