refresh problem
| From: | silver_dragoon | Date: | Thu, 22 May 2003 16:58:05 +0000 |
| Subject: | refresh problem | ||
| Groups: | php.gtk.general | ||
| Request: | Send a blank email to php-gtk-general+get-3466@lists.php.net to get a copy of this message | ||
hi all
i'm currently writing a small piece of code which intends to connect to an irc server and
permit the user to chat a little (yeah I know phpirc already exists but i'd like to do some
simple stuff on my own).
The connecting process works perfectly, but when the script starts communicating with the server
using the socket_read function, the display freezes, only the dos console is updated. I have a
gtk::timeout_add('20', "update_irc", $textepopup, $socket);
which makes a
$datairc = @socket_read($socket, 10240);
when called. I noticed that when I removed this line, the were no more bugs. The timeout is set just
before the gtk::main() function... does anyone know why my screen freezes ? $socket is a global var
which is set using another function just before which connects to the server...
thanx a lot
++ silver_d