Re: [Libevent-users] Using evbuffer_peek

2010-11-11 Thread Nick Mathewson
On Thu, Nov 11, 2010 at 11:16 PM, Kevin Bowling wrote: > > > On Thu, Nov 11, 2010 at 9:00 PM, Nick Mathewson wrote: >> >> On Thu, Nov 11, 2010 at 10:42 PM, Kevin Bowling >> wrote: >> > Hi, >> > >> > I've seen a few mails talking about evbuffer_peek, but no solid usage of >> > it.  The doxygen on

Re: [Libevent-users] Using evbuffer_peek

2010-11-11 Thread Kevin Bowling
On Thu, Nov 11, 2010 at 9:00 PM, Nick Mathewson wrote: > On Thu, Nov 11, 2010 at 10:42 PM, Kevin Bowling > wrote: > > Hi, > > > > I've seen a few mails talking about evbuffer_peek, but no solid usage of > > it. The doxygen on the libevent page doesn't cover it generating my own > > from 2.0.8 h

Re: [Libevent-users] Using evbuffer_peek

2010-11-11 Thread Nick Mathewson
On Thu, Nov 11, 2010 at 10:42 PM, Kevin Bowling wrote: > Hi, > > I've seen a few mails talking about evbuffer_peek, but no solid usage of > it.  The doxygen on the libevent page doesn't cover it generating my own > from 2.0.8 has shed little light on its use to me. There's an example at http://ww

[Libevent-users] Using evbuffer_peek

2010-11-11 Thread Kevin Bowling
Hi, I've seen a few mails talking about evbuffer_peek, but no solid usage of it. The doxygen on the libevent page doesn't cover it generating my own from 2.0.8 has shed little light on its use to me. Basically, for my test case I have two bytes in network order that make up a short. These are o