[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: PING/PONG
Hi,
On Mon, Feb 08, 1999 at 11:33:20PM +0100, Robert Martin-Legene wrote:
| > Indeed. And you dare to call _that_ elegant?
|
| What's not elegant about thinking about things for more than 2 seconds?
| If you are making a client/script anyway, why bother the server about some
| functionality that can be accomplished quite simple anyway?
| Maybe Kasi could comment on a solution like this: Assume we send a PING
| every 10 seconds.. every time we send a PING we push a timestamp on the
| "stack". When we get a PONG, we pop the oldest one.
|
| stack:
|
| PING (+0)
| PONG ()
| PING (+10)
| PONG ()
| PING (+20)
| PING (+20,+30)
| PING (+20,+30,+40)
| PONG (+30,+40)
|
| Wouldn't this work? Or what am I missing?
uhm. :)
I´m not the client coder guru but even to me this looks pretty much
expensive/painful than just sending out a bogus command and wait for the
return of it..
Bye, Kasi
--
Kaspar Landsberg, <kl@xxxxxxxxxxx>