[En-Nut-Discussion] fflush on input

Brett Abbott Brett.Abbott at digital-telemetry.com
Fri Dec 12 05:20:27 CET 2003


Harald,

I use fflush to ensure the output goes to destination but I wouldnt want 
to lose incoming data already queued just because the output thread 
wanted to hurry up....  How should I be forcing output buffer to flush 
without affecting incoming stream data?

Many Thanks
Brett

Message: 4
Date: Thu, 11 Dec 2003 15:08:28 +0100
From: Harald Kipp <harald.kipp at egnite.de>
Subject: Re: [En-Nut-Discussion] fflush newbie question
To: togrady at comtech.uk.com,	"Ethernut User Chat (English)"
	<en-nut-discussion at egnite.de>
Message-ID: <5.1.1.6.0.20031211150609.02d48d18 at egnite.de>
Content-Type: text/plain; charset="us-ascii"; format=flowed

Trevor,

fflush forces data output only. It does not flush the input
buffer, which is considered an error and will be changed.

fflush shall force output and discard the input.



Harald


-- 
-----------------------------------------------------------------
Brett Abbott, Managing Director, Digital Telemetry Limited
Email: Brett.Abbott at digital-telemetry.com
PO Box 24 036 Manners Street, Wellington, New Zealand
Phone +64 (4) 5666-860  Mobile +64 (21) 656-144
------------------- Commercial in confidence --------------------





More information about the En-Nut-Discussion mailing list