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

[Libevent-users] event vs bufferevent



Hey everyone,

I know that for writing Data, bufferevents are more suitable because you
need some kind of Output-Buffer from where Data ist partially drained  to
the Socket every time the Socket gets ready for writing.

But why should someone use bufferevents over events while just reading
Data? Isnt the use of Events, where an application reads Data directly
from a "ready to read" Socket more efficient, instead of using a
Bufferevent which reads the data into the Input-Buffer where afterwards
the application needs to drain the Data from that Input Buffer again?

So, why using Bufferevents over Events to read Data? What are the reasons?

Hope someone kindly anwers my question

Fc

***********************************************************************
To unsubscribe, send an e-mail to majordomo@xxxxxxxxxxxxx with
unsubscribe libevent-users    in the body.