Data available for reading in a GIOChannel
- Date: Sun, 27 May 2007 16:57:03 +0200
- From: "Jonathan Winterflood" <jonathan.winterflood@xxxxxxxxx>
- Subject: Data available for reading in a GIOChannel
Hi,
I need to read a large amount of data from a GIOChannel (200K, over the internet).
So far, I use the gnet library to create the socket, and then I use the GIOChannel to integrate the read/writing into the program's loop (a GTK application)
I use g_io_add_watch(_channel, G_IO_IN, &(_imageDataReadyForReading), this); to register the callback for data reading.
How can I determine the number of bytes available for reading, so as not to block on reading the data?
Thanks,
Jonathan
_______________________________________________ gtk-list mailing list gtk-list@xxxxxxxxx http://mail.gnome.org/mailman/listinfo/gtk-list
- Follow-Ups:
- Re: Data available for reading in a GIOChannel
- From: Robert Pearce
- Re: Data available for reading in a GIOChannel
- From: Tristan Van Berkom
- Re: Data available for reading in a GIOChannel
- Prev by Date: Re: Regarding GLIB 2.4.0
- Next by Date: Re: Regarding GLIB 2.4.0
- Previous by thread: how to draw curves
- Next by thread: Re: Data available for reading in a GIOChannel
- Index(es):