8 #ifndef __WVSTREAMCLONE_H
9 #define __WVSTREAMCLONE_H
77 virtual size_t uread(
void *buf,
size_t size);
78 virtual size_t uwrite(
const void *buf,
size_t size);
79 virtual bool isok()
const;
80 virtual int geterr()
const;
88 virtual WvString getattr(WvStringParm name)
const;
91 void close_callback();
96 const char *wstype()
const {
return my_type; }
99 #endif // __WVSTREAMCLONE_H
virtual ~WvStreamClone()
The WvStreamClone destructor.
virtual void execute()
The callback() function calls execute(), and then calls the user- specified callback if one is define...
virtual size_t uread(void *buf, size_t size)
unbuffered I/O functions; these ignore the buffer, which is handled by read().
virtual void close()
Close this stream.
virtual size_t uwrite(const void *buf, size_t size)
unbuffered I/O functions; these ignore the buffer, which is handled by write().
virtual void noread()
Shuts down the reading side of the stream.
WvString is an implementation of a simple and efficient printable-string class.
the data structure used by pre_select()/post_select() and internally by select().
virtual void nowrite()
Shuts down the writing side of the stream.
Base class for different address types, each of which will have the ability to convert itself to/from...
WvStreamClone simply forwards all requests to the "cloned" stream.
virtual void setclone(IWvStream *clone)
WvStreamClone takes ownership of the given stream; it will WVRELEASE() the stream when you setclone()...
virtual void pre_select(SelectInfo &si)
pre_select() sets up for eventually calling ::select().
Unified support for streams, that is, sequences of bytes that may or may not be ready for read/write ...
virtual const WvAddr * src() const
get the remote address from which the last data block was received.
virtual int geterr() const
If isok() is false, return the system error number corresponding to the error, -1 for a special error...
virtual bool isok() const
return true if the stream is actually usable right now
WvStreamClone(IWvStream *_cloned=NULL)
Constructs the stream, then calls setclone(_cloned).
virtual bool post_select(SelectInfo &si)
post_select() is called after ::select(), and returns true if this object is now ready.
virtual bool flush_internal(time_t msec_timeout)
WvStream overrides.