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: Vasco Alexandre Da Silva Costa <vasc@xxxxxxxxxxxxxx>
Date: Thu, 7 Nov 2002 23:17:50 +0000 (WET)

On Thu, 7 Nov 2002, Ben Webb wrote:

> 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...

Hmm... yes. Looking at the connect manpage that seems to be possible.
I thought non-blocking only worked for recv & sendto.

Thanks,

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





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