Re: [gtk-list] Re: GTK and network socket programming



Owen Taylor wrote:
> 
> 
> Take a look at the gdk_input_add() function.
> 
> gint gdk_input_add        (gint              source,
>                            GdkInputCondition condition,
>                            GdkInputFunction  function,
>                            gpointer          data);
> 
> typedef enum
> {
>   GDK_INPUT_READ       = 1 << 0,
>   GDK_INPUT_WRITE      = 1 << 1,
>   GDK_INPUT_EXCEPTION  = 1 << 2
> } GdkInputCondition;
> 
> This allows you to specify a function that will be called
> any time a certain file descriptor becomes available for
> reading or writing.
> 
> Regards,
>                                         Owen
> 
> --
> To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null

Could this be put into the FAQ?  This is a pretty important snippit, one
that I had wondered about myself... :)

--Chris

-- 

------------
Christopher Blizzard
AppliedTheory Communications, Inc. 
http://odin.appliedtheory.com/
blizzard@appliedtheory.com
------------



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