Michael F. Robbins on Tue, 25 Jun 2002 05:40:15 +0200


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] C++, FIFOs, getline, and O_NDELAY


On Mon, 2002-06-24 at 09:28, Kyle R . Burton wrote:
> I'm not sure you can do what you want with getline(), since it will block
> untill it finds the next newline - there are 2 ways I can think of to solve
> this.  The first is to use threads, have a 'getline' thread and have your
> other thread do the work.  The second is to fall back to stdio functions
> and make your main loop something like

Writing in stdio functions made it work.  And surprisingly, it isn't too
ugly.  Thanks for your help.

Michael F. Robbins
mike@gamerack.com

Attachment: signature.asc
Description: This is a digitally signed message part