Re: [gtk-list] problem



>  Hello, i'm working on a small telnet program which needs to wait for 
>  data on a socket.. and because of having to call gtk_main, i can't think 
>  of any ways to do this without threads

Use the gdk_input_add() and gdk_input_remove() functions.  The effect
is that when data comes in, the callback you specify will be invoked.

  Federico



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