It works fine for me. Essentially, it allows you to add data to a bufferedevent and libevent will stream out to the network/file descriptor as it becomes available. It is also useful for buffering up events on reading. Sometimes, your data gets fragmented and you can use the buffer to add it up until its ready.
I think ScanSSH has some example usage of bufferedevents, but the way that I am using them there is pretty ugly. I have better code in Honeyd which I think is not released yet. Niels. On 11/18/05, Morgan Jones <[EMAIL PROTECTED]> wrote: > Hi all, I've been using libevent with much success, but now am needing to > retrofit buffered io into my code. I considered spinning my own until I > read the most current event.3 man page... I wondered about taking advantage > of the buffered event provided by libevent... but no examples to be found > and not much mention of it. > > anyone know the stablility of this aspect of the library? any examples > around?? > > Thanks, Morgan > > > ________________________________ > Yahoo! FareChase - Search multiple travel sites in one click. > > > _______________________________________________ > 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
