Re: [gtk-list] problem
- From: John Lorer <jdl136 mail usask ca>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] problem
- Date: Sun, 21 Mar 1999 22:50:46 -0600
Patrick Cantell wrote:
>
> 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
>
> Can anyone think of a way to do this or will be forced to use threads?
>
> Thanks
> -Patrick
> Get Your Private, Free Email at http://www.hotmail.com
>
> --
> To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null
You can probably use gdk_input_add to watch the file descriptor and call
a callback function when data becomes available. See
http://www.gtk.org/tutorial1.2/gtk_tut-17.html
HTH.
John
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]