Ignore:
Timestamp:
21/08/2008 12:05:38 (3 years ago)
Author:
chris
Message:

Add a Flush() method to IOStream to read and discard all remaining data,
and a SelfFlushingStream? class which can be used to ensure that protocol
streams are always flushed, to avoid breaking protocol.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • box/trunk/lib/common/IOStream.h

    r217 r2254  
    5858        bool ReadFullBuffer(void *pBuffer, int NBytes, int *pNBytesRead, int Timeout = IOStream::TimeOutInfinite); 
    5959        bool CopyStreamTo(IOStream &rCopyTo, int Timeout = IOStream::TimeOutInfinite, int BufferSize = 1024); 
     60        void Flush(int Timeout = IOStream::TimeOutInfinite); 
    6061         
    6162        static int ConvertSeekTypeToOSWhence(int SeekType); 
Note: See TracChangeset for help on using the changeset viewer.