Re(2): Re(2): [PHP-GTK] IO functions
| From: | Yanick Bourbeau | Date: | Mon, 30 Apr 2001 15:58:19 +0000 |
| Subject: | Re(2): Re(2): [PHP-GTK] IO functions | ||
| References: | 1 2 3 4 | Groups: | php.gtk |
| Request: | Send a blank email to php-gtk+get-1570@lists.php.net to get a copy of this message | ||
andrei@ispi.net writes:
>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
Yeah it working fine under linux (using all the sockets function)
but socket() is not available under windows.
I try to make a simple irc client for testing purpose, the only way
i can use for now (windows and linux issue) is to use a textfile for
incoming data/outcoming data.
Yanick Bourbeau
Edison Communication Inc.
ybo@lesoleil.com