streambuf RWPortalStreambuf RWPortal
Networking Tools: Network Communication Classes (net library)
#include <rw/toolpro/portstrm.h>
net, tls (and possibly std)
An RWPortalStreambuf is a streambuf that uses an RWPortal as its source and sink of bytes. It is used by RWPortalIStream and RWPortalOStream.
RWPortalStreambuf();
Constructs a streambuf with no source or sink of bytes. You need to set the source and sink using setPortal before using self.
RWPortalStreambuf(const RWPortal& p);
Constructs a streambuf connected to the portal p.
virtual int overflow(int = EOF);
Writes to the portal when the buffer overflows.
void setPortal(const RWPortal& p);
Sets the communications channel into which we are writing.
virtual int sync();
Flushes the buffer.
virtual int underflow();
Reads from the portal when the buffer underflows.
©Copyright 2000, Rogue Wave Software, Inc.
Contact Rogue Wave about documentation or support issues.