Re: [gnet-devel] Flushing GConn Buffer



Thanks for the replies,

I think perhaps that using the term 'flush' is erroneous in this
context. What I'm really looking for is the GConn equivalent of
GConnHttp's gnet_conn_http_steal_buffer(), which of course doesn't
exist.

I'm sure I'll find a better way to do what I'm doing anyway. :)

Thanks for the help!


On Wed, 2008-07-02 at 09:49 -0400, Jeff Garzik wrote:
> 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
> 
> 
> _______________________________________________
> gnet-devel-list mailing list
> gnet-devel-list gnome org
> http://mail.gnome.org/mailman/listinfo/gnet-devel-list
-- 
Les Harris <me lesharris com>
http://www.lesharris.com/
Public Key: http://www.lesharris.com/gpg

Attachment: signature.asc
Description: This is a digitally signed message part



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