9 #include "wvloopback.h"
10 #include "wvsocketpair.h"
11 #include "wvmoniker.h"
12 #include "wvlinkerhack.h"
24 WvLoopback::WvLoopback()
28 if (wvsocketpair(SOCK_STREAM, socks))
virtual void seterr(int _errnum)
Override seterr() from WvError so that it auto-closes the stream.
A type-safe version of WvMonikerBase that lets you provide create functions for object types other th...
void set_close_on_exec(bool close_on_exec)
Make the fds on this stream close-on-exec or not.
Implementation of a WvLoopback stream.
void set_nonblock(bool nonblock)
Make the fds on this stream blocking or non-blocking.
int wfd
The file descriptor for writing.
int rfd
The file descriptor for reading.