Complete.Org: Mailing Lists: Archives: freeciv-ai: July 2004:
[freeciv-ai] Re: puppeteer patches builded over versions that do not com
Home

[freeciv-ai] Re: puppeteer patches builded over versions that do not com

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: nikodimka <nikodimka@xxxxxxxxx>
Cc: freeciv-ai@xxxxxxxxxxx
Subject: [freeciv-ai] Re: puppeteer patches builded over versions that do not compile
From: Vasco Alexandre Da Silva Costa <vasc@xxxxxxxxxxxxxx>
Date: Sun, 18 Jul 2004 14:10:25 +0100 (WET DST)

On Sun, 18 Jul 2004, nikodimka wrote:

> --- Vasco Alexandre Da Silva Costa <vasc@xxxxxxxxxxxxxx> wrote:
>
> > netintf.h has a UNIX/Win32 compatible network layer.
>
> Why then the gui clients do use their toolkits' means of dealing with sockets?
> And not just

Because using select() there is not a good idea. You want to be able to
use the client all the time, so you will end up polling the socket, and
the GUI library usually knows how to do this best anyway.

The clients do use netintf.h for everything else however.

Since you will not be using a GUI at all, you can use select() just like
civserver does.

---
Vasco Alexandre da Silva Costa @ Instituto Superior Tecnico, Lisboa



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