Complete.Org: Mailing Lists: Archives: freeciv-dev: December 2005:
[Freeciv-Dev] Re: (PR#14819) gui-sdl server list connection
Home

[Freeciv-Dev] Re: (PR#14819) gui-sdl server list connection

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Subject: [Freeciv-Dev] Re: (PR#14819) gui-sdl server list connection
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 11 Dec 2005 07:30:38 -0800
Reply-to: bugs@xxxxxxxxxxx

<URL: http://bugs.freeciv.org/Ticket/Display.html?id=14819 >

Christian Prochaska wrote:
> <URL: http://bugs.freeciv.org/Ticket/Display.html?id=14819 >
> 
> On 12/10/05, Jason Short <jdorje@xxxxxxxxxxxxxxxxxxxxx> wrote:
> 
>><URL: http://bugs.freeciv.org/Ticket/Display.html?id=14819 >
>>
>>When you press "connect to lan" or "connect to metaserver" in the start
>>screen, you have to wait while the server list is downloaded.  But at
>>the end the server list isn't displayed and only the regular server
>>select dialog is present.
> 
> 
> Here's a patch that gives some more time for scanning. My lan server
> server on localhost was found, but the client crashes when searching
> for public servers and I don't know what the reason is. I wait until
> server_scan_get_servers() returns a server list (!= NULL), but for
> some reason server_list_iterate() ends without a single iteration on
> this list.

In a lanserver scan the servers will keep showing up one at a time.

The correct way to do it is to put the server list up immediately and 
call get_servers() at intervals.  It's non-blocking so in theory the 
servers will just show up one at a time as they are reported.

-jason





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