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