Complete.Org: Mailing Lists: Archives: freeciv-dev: May 2000:
[Freeciv-Dev] Re: setvbuf on stdout instead of using fflush
Home

[Freeciv-Dev] Re: setvbuf on stdout instead of using fflush

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: setvbuf on stdout instead of using fflush
From: Vasco Alexandre Da Silva Costa <vasc@xxxxxxxxxxxxxxx>
Date: Mon, 15 May 2000 23:35:21 +0100 (WET DST)

On Mon, 15 May 2000, J. S. Bach wrote:

> On Mon, 15 May 2000, David Pfitzner wrote:
> 
> > Dan Gohman <gohmandj@xxxxxxxxxxx> wrote:
> > 
> [0] It appears that using readline in the server would require threads,
> because otherwise we can't do anything while readline is waiting for
> input. I'm not going to code this anytime soon, however.

Actually it isn't, if you look carefully in the readline info, you will
notice there are functions that enable you to call readline when you want
(e.g. when there is input on descriptor 0 aka stdin).

Hint: try searching for "Alternate Interface".

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




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