Re: [gnet-devel] Flushing GConn Buffer



Tim Müller wrote:
On Tue, 2008-07-01 at 11:34 -0700, Les Harris wrote:

Hi,

Is it possible to flush the buffer of a GConn after a read event has
finished?  I know there is the event->length parameter which is what I'm
using to get the proper amount of data from the buffer, but for my use
case it would be easier for me if I could just flush the buffer.

Not in any way that I can think of. Why do you want to do that? Seems a
rather odd thing to do for a stream-based connection.

Indeed.

For GNet, "flushing" the buffer simply involves ignoring the read-style events...

Maybe he is looking for [currently non-existent] gnet_conn_read_direct()?

	Jeff




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