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

[Freeciv-Dev] Re: RFC Metaserver overhaul

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: RFC Metaserver overhaul
From: Ben Webb <ben@xxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 7 Nov 2002 10:47:47 +0000

On Wed, Nov 06, 2002 at 09:46:49PM +0000, Vasco Alexandre Da Silva Costa wrote:
> On Wed, 6 Nov 2002, Reinier Post wrote:
> > Why would it need to block?
> You need to establish a TCP connection. That takes some time.
> HTTP is based on TCP.

So set the socket non-blocking before calling connect(2), and then
select(2) it for writing...

        Ben
-- 
ben@xxxxxxxxxxxxxxxxxxxxxx           http://bellatrix.pcl.ox.ac.uk/~ben/
"Mediocrity knows nothing higher than itself but talent instantly 
recognizes genius."
        - Sir Arthur Conan Doyle


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