7 #ifndef __WVBUFSTREAM_H
8 #define __WVBUFSTREAM_H
42 virtual size_t uread(
void *buf,
size_t size);
43 virtual size_t uwrite(
const void *buf,
size_t size);
44 virtual bool isok()
const;
48 void seteof() { eof =
true; }
52 #endif // __WVBUFSTREAM_H
virtual void pre_select(SelectInfo &si)
pre_select() sets up for eventually calling ::select().
virtual bool post_select(SelectInfo &si)
post_select() is called after ::select(), and returns true if this object is now ready.
virtual void close()
Close the stream if it is open; isok() becomes false from now on.
virtual bool isok() const
return true if the stream is actually usable right now
the data structure used by pre_select()/post_select() and internally by select().
virtual size_t uwrite(const void *buf, size_t size)
unbuffered I/O functions; these ignore the buffer, which is handled by write().
Unified support for streams, that is, sequences of bytes that may or may not be ready for read/write ...
WvBufStream stores data written by write(), and returns it later on in read().
virtual size_t uread(void *buf, size_t size)
unbuffered I/O functions; these ignore the buffer, which is handled by read().