5 #ifndef __WVMAGICLOOPBACK_H
6 #define __WVMAGICLOOPBACK_H
8 #include "wvmagiccircle.h"
9 #include "wvloopback.h"
20 virtual size_t uread(
void *buf,
size_t len);
21 virtual size_t uwrite(
const void *buf,
size_t len);
29 const char *wstype()
const {
return "WvMagicLoopback"; }
32 #endif // __WVMAGICLOOPBACK_H
virtual void pre_select(SelectInfo &si)
pre_select() sets up for eventually calling ::select().
A circular queue that can be accessed across fork().
virtual bool post_select(SelectInfo &si)
post_select() is called after ::select(), and returns true if this object is now ready.
the data structure used by pre_select()/post_select() and internally by select().
Unified support for streams, that is, sequences of bytes that may or may not be ready for read/write ...
virtual size_t uwrite(const void *buf, size_t len)
unbuffered I/O functions; these ignore the buffer, which is handled by write().
virtual size_t uread(void *buf, size_t len)
unbuffered I/O functions; these ignore the buffer, which is handled by read().
Implementation of a WvLoopback stream.