Re: Re(2): [PHP-GTK] IO functions
| From: | Andrei Zmievski | Date: | Mon, 30 Apr 2001 15:58:10 +0000 |
| Subject: | Re: Re(2): [PHP-GTK] IO functions | ||
| References: | 1 2 3 | Groups: | php.gtk |
| Request: | Send a blank email to php-gtk+get-1569@lists.php.net to get a copy of this message | ||
On Mon, 30 Apr 2001, Yanick Bourbeau wrote:
> Humm mkay, the problem is if im using a fsockopen with for example a
> fread, that froze the GTK interface during waiting for input. Do you know
> a trick to see if data is available to be read ?
You can use socket_set_blocking() to make socket non-blocking and then
periodically check for data.
-Andrei
"Someone clearly thinks that C is a garbage collected language"
-- Morten Welinder