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:
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
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
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,