Re: Socket i/o from within Gtk::main()?
| From: | Anant Narayanan | Date: | Sat, 26 Aug 2006 22:03:10 +0000 |
| Subject: | Re: Socket i/o from within Gtk::main()? | ||
| References: | 1 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-7116@lists.php.net to get a copy of this message | ||
Hi Yermo,
One thing I can't seem to find is how to manage a socket connection within Gtk::main(). I'd like to avoid having to poll if possible. So I imagine there has to be a way to establish a connection, add it to some kind of list and have it generate an asychronous callback whenever there's data to read, right?Several people have tried making instant messengers in PHP-GTK in the past, and I must say that not many have been successful. This topic was discussed earlier on the list: http://marc.theaimsgroup.com/?l=php-gtk-general&m=113468136627591&w=2 This is mainly due to the fact that PHP does not support multi-threading, and that means Gtk::main() blocks pretty much everything. This has nothing to do with Gtk itself, several popular IM's are written in Gtk but using C or C++. Cheers, - Anant