Re: socket question

2006-11-06 Thread Peter Lund
On Sun, 2006-11-05 at 19:08 -0500, Chris Cole wrote: > Is there anything like this for python? Did you set the socket to non-blocking mode? (man fcntl, look for O_NONBLOCK) -Peter ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http:

Re: socket question

2006-11-06 Thread Chris Cole
Is there anything like this for python? Samuel Cormier-Iijima wrote: > I'm using the GNet library [1], which makes this kind of thing easier > with asynchronous (non-blocking) sockets. The callbacks will get run > in your main loop, so as long as the handler doesn't take too long to > run, the GUI

Re: socket question

2006-11-05 Thread John Vetterli
On Sun, 5 Nov 2006, Chris Cole wrote: > hello all, i'm developing a client side gui whose main task is to > process data coming from a remote server. no matter how i try to get > around it (threads, queues, etc), gtk always hangs whenever i do a > call socketFoo.recv(). i know there has to be someo

Re: socket question

2006-11-05 Thread Samuel Cormier-Iijima
I'm using the GNet library [1], which makes this kind of thing easier with asynchronous (non-blocking) sockets. The callbacks will get run in your main loop, so as long as the handler doesn't take too long to run, the GUI shouldn't block. Maybe if you posted an example of what you're trying to do,