Complete.Org: Mailing Lists: Archives: freeciv-dev: November 2002:
[Freeciv-Dev] Re: Ping
Home

[Freeciv-Dev] Re: Ping

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Cc: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: Ping
From: Thomas Strub <ue80@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 1 Nov 2002 23:02:05 +0100

On Tue, Oct 29, 2002 at 04:07:48PM +0100, Thomas Strub wrote:
> On Tue, Oct 29, 2002 at 02:39:44PM +0100, Raimar Falke wrote:
> > On Tue, Oct 29, 2002 at 12:57:33PM +0100, Thomas Strub wrote:
> > > On Tue, Oct 29, 2002 at 10:09:38AM +0100, Raimar Falke wrote:
> > > > On Mon, Oct 28, 2002 at 09:33:39PM +0100, Thomas Strub wrote:
> > > > > Hi,
> > > > > 
> > > > > as client-servergame freeciv should show the pings of all the players.
> > > > > 
> > > > > Things in my implementation where people could say make it different:
> > > > > gettimeofday on server is essential but nowhere verified. 
> > > > 
> > > > > The timers of common/timing  aren't used.
> > > > 
> > > > Please use it.
> > > 
> > > I really don't like the "double sec" in timing.c 
> > 
> > The alternative is to test for HAVE_GETTIMEOFDAY. I think that the double 
> > is better.q
> 
> Ok i changed it. But i think its a little bit slower ...
>  
> > > > > No sequence number in the ping packet.
> > > > > Ping packet every 3 seconds and not as player option.
> > > > 
> > > > Please make it a server option or just use pingtimeout.

> > > Making a server option is much work ... so i first wanted that it works.

Ok ... i'm using it now .. 
Works with unpatched clients. But the client isn't showing the pings
then.


> > If you use the same packet you may also reuse pingtimeout.

I'm using pingtimeout too, but dividing it by 20.
So pinging every 3 second in default.

Thomas

Attachment: ping10-timing.diff
Description: Text document


[Prev in Thread] Current Thread [Next in Thread]