Complete.Org: Mailing Lists: Archives: freeciv-dev: October 2004:
[Freeciv-Dev] Re: packet_conn_ping_info and connections
Home

[Freeciv-Dev] Re: packet_conn_ping_info and connections

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Jason Dorje Short <jdorje@xxxxxxxxxxxx>
Cc: Freeciv-Dev <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] Re: packet_conn_ping_info and connections
From: Mike Kaufman <kaufman@xxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 19 Oct 2004 13:45:24 -0500

On Tue, Oct 19, 2004 at 02:33:27PM -0400, Jason Dorje Short wrote:
> packet_conn_ping_info assumes there can be no more than MAX_NUM_PLAYERS 
> connections.  Is this a safe assumption?  It seems unlikely.

this is absolutely wrong.

sernet.h:

#define MAX_NUM_CONNECTIONS (2 * (MAX_NUM_PLAYERS + MAX_NUM_BARBARIANS))

the 2 there was put in by me, but it's really arbitrary. For a really
exciting game (league finals?), you might want to have a great many
observers. We might want to raise it sometime in the future.

We also might want to move this define to connection.h

-mike


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