Boost logo

Boost Users :

Subject: [Boost-users] asio flushing a buffer
From: Lloyd (lloyd_at_[hidden])
Date: 2010-04-09 07:23:26


Hi,

I went through the documentation of boost::asio::read_until() function. It says that if some data left in the stream after a read_until() operation, it will be available in the next "read" opration from the stream. Is there any way to "flush" (simply remove) the unwanted data from the stream so as to receive entirely new data than the old "useless" data left in the stream?

Thanks,
  Lloyd

______________________________________
Scanned and protected by Email scanner



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net