bug-commoncpp
[Top][All Lists]
Advanced

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

Re: TCPStream output flush() clears input


From: David Sugar
Subject: Re: TCPStream output flush() clears input
Date: Thu, 13 Dec 2001 16:18:50 -0500
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.4) Gecko/20010914

How are you trying to "flush"? Are you using sync or the flush or endl stream manipulator? I think sync() clears both currently.

Ian Campbell wrote:

Hello,
   I am trying to use the TCPStream class and I have a problem when trying
to flush the output to the remote host, that the input gets cleared. Now
from my understanding of the iostream this shouldn't happen - only the
output should be cleared. Is this a confusion on my part or should this not
happen? At the moment I have worked around (for the purposes of writing the
application)  by using a buffer size of 1, which eliminates the need for any
control of the output buffering. Any help would be much appreciated.

Regards,

Ian Campbell
Band-X Ltd.




_______________________________________________
Bug-commoncpp mailing list
address@hidden
http://mail.gnu.org/mailman/listinfo/bug-commoncpp






reply via email to

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