Module: Essential Networking Module Package: Networking
RWTPortalStreambufstd::basic_streambuf
#include <rw/network/RWTPortalStreambuf.h>
RWTPortalStreambuf is a streambuf that uses an RWPortal as its source and sink of bytes.
typedef traits_type::int_type int_type;
RWTPortalStreambuf();
Constructs a streambuf without a source or sink of bytes. You need to set the source and sink using setPortal() before using self.
RWTPortalStreambuf(const RWPortal& p);
Constructs a streambuf connected to the portal p.
virtual int_type overflow(int_type = traits_type::eof());
Writes to the portal when the buffer overflows.
void setPortal(const RWPortal& p, bool force = false );
Sets the communications channel into which you are writing. If force is true, the underlying portal is reassigned, and any exceptions thrown by the assignment are caught and ignored.
virtual int_type underflow();
Reads from the portal when the buffer underflows.
© Copyright Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave and SourcePro are registered trademarks of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.