Ignore:
Timestamp:
12/29/12 10:24:28 (11 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

Renamed BufferedWaitable to BufferedStream

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/xplcommon/posix/ReadingBuffer.h

    r6 r16  
    3232//------------------------------------------------------------------------------
    3333
    34 #include "WaitableBuffer.h"
     34#include "StreamBuffer.h"
    3535
    3636//------------------------------------------------------------------------------
     
    4747 * amount of data read is 0, that indicates and end-of-file condition.
    4848 */
    49 class ReadingBuffer : public WaitableBuffer
     49class ReadingBuffer : public StreamBuffer
    5050{
    5151protected:
     
    5353     * Construct the buffer.
    5454     */
    55     ReadingBuffer(size_t capacity, BufferedWaitable* waitable);
     55    ReadingBuffer(size_t capacity, BufferedStream* stream);
    5656
    5757public:
    5858    /**
    59      * Read into the buffer using the buffered waitable if possible.
     59     * Read into the buffer using the buffered stream if possible.
    6060     *
    6161     * If the buffer contains data, this function returns immediately
     
    6767     * end-of-file or end-of-connection condition.
    6868     *
    69      * If the reading operation would block, the waitable is set up so
     69     * If the reading operation would block, the stream is set up so
    7070     * that it would read, and failure is returned.
    7171     *
     
    7676    bool read();
    7777
    78     friend class BufferedWaitable;
     78    friend class BufferedStream;
    7979};
    8080
     
    8383//------------------------------------------------------------------------------
    8484
    85 inline ReadingBuffer::ReadingBuffer(size_t capacity,
    86                                     BufferedWaitable* waitable) :
    87     WaitableBuffer(capacity, waitable)
     85inline ReadingBuffer::ReadingBuffer(size_t capacity, BufferedStream* stream) :
     86    StreamBuffer(capacity, stream)
    8887{
    8988}
Note: See TracChangeset for help on using the changeset viewer.