[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: PING/PONG



On 08-Feb-99 Robert Martin-Legene wrote:
> On Mon, 8 Feb 1999, Ville wrote:
> 
>> On Mon, 8 Feb 1999, Robert Martin-Legene wrote:
>> 
>> > How about writing the client, so it remembers how many PINGs it sent, and
>> > how many PONGs it receives? You wouldn't need anything unique in the
>> > PING/PONGs. You can easily see if you are 3 PONGs behind.
>> 
>> 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?
> 
OK ...seems i made small mystake in last mail. :) Not stack but que (First In
First Out) :) 

                                                              Kratz

> -- Robert Martin-Legčne / Null ! robert@xxxxxxxxxxxxx

+-----------------------------------------------------------------------------+
| Bc. Tomas Kraus                                                             |
+-----------------------------------------------------------------------------+
| E-Mail: kratz@xxxxxxxxxxx                                                   |
| Date: 09-Feb-99                                                             |
| Time: 00:14:27                                                              |
+-----------------------------------------------------------------------------+