Re: connecting via socket at scheduled intervals
| From: | Andrei Zmievski | Date: | Mon, 16 Jul 2001 13:27:32 +0000 |
| Subject: | Re: connecting via socket at scheduled intervals | ||
| References: | 1 | Groups: | php.gtk |
| Request: | Send a blank email to php-gtk+get-2191@lists.php.net to get a copy of this message | ||
On Sun, 15 Jul 2001, Robert Abbate wrote:
> Anyone know how to use GTK, once it's running, to connect via a socket to a
> webserver at certain time intervals automatically?
>
> Any direction would be helpful.
Use gtk::timeout_add() in order to schedule something at certain
intervals.
function foo()
{
..
return true;
}
// schedule foo() to run every second
gtk::timeout_add(1000, 'foo');
-Andrei
"Everything should be made as simple
as possible, but not simpler."
-- Albert Einstein