RE: [PHP-GTK] grabbing I.P. number
| From: | Robert Abbate | Date: | Mon, 16 Jul 2001 13:47:55 +0000 |
| Subject: | RE: [PHP-GTK] grabbing I.P. number | ||
| References: | 1 | Groups: | php.gtk |
| Request: | Send a blank email to php-gtk+get-2192@lists.php.net to get a copy of this message | ||
One last question if I may...
How can you grab the I.P. number of the client's computer...is there a
function which allows you to do this?
Thanks again.
Robert
-----Original Message-----
From: Andrei Zmievski [mailto:andrei@ispi.net]
Sent: Monday, July 16, 2001 8:28 AM
To: Robert Abbate
Cc: php-gtk@lists.php.net
Subject: Re: [PHP-GTK] connecting via socket at scheduled intervals
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