5#ifndef __WVMAGICLOOPBACK_H
6#define __WVMAGICLOOPBACK_H
8#include "wvmagiccircle.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"; }
Implementation of a WvLoopback stream.
A circular queue that can be accessed across fork().
virtual void pre_select(SelectInfo &si)
pre_select() sets up for eventually calling select().
virtual size_t uread(void *buf, size_t len)
unbuffered I/O functions; these ignore the buffer, which is handled by read().
virtual size_t uwrite(const void *buf, size_t len)
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.
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().