Re: [gtk-list] GIOChannel
- From: Owen Taylor <otaylor redhat com>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] GIOChannel
- Date: 19 Jan 2000 15:59:13 -0500
Sean Cody <umcodysw@cc.UManitoba.CA> writes:
> Has anyone done any serious work using said glib type?
>
> I've been playing with it and have noticed 0% code saving and the callback
> model doesn't seem to be very usefull for determining things like
> diconnections,timeouts.... Since when is read/write not portable?
The read/write stuff is not particularly useful on Unix; the main
reason it is there is for the Win32 port. On Win32d you can't select
on a pipe. So, a write to a IO channel which is a pipe also sends a
message to the reader on the other end. The Win32 port of the GIMP
uses it a bunch.
The callback behavior is very useful; it allows you to tell anything
you can tell by selecting or polling on a file descriptors, but
with callbacks you can integrate into a main loop with the
GTK+ GUI.
Regards,
Owen
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]