UCommon
|
Common stream protocol for std C++ i/o classes. More...
#include <stream.h>
Public Member Functions | |
bool | is_open (void) |
operator bool () | |
bool | operator! () |
int | sync (void) |
Flush the stream input and output buffers, writes pending output. | |
Protected Member Functions | |
void | allocate (size_t size) |
int | overflow (int code) |
void | release (void) |
int | uflow () |
This streambuf method is used for doing unbuffered reads through the establish tcp socket connection when in interactive mode. | |
int | underflow () |
Protected Attributes | |
size_t | bufsize |
char * | gbuf |
char * | pbuf |
Common stream protocol for std C++ i/o classes.
This both binds the character protocol to iostream and offers a common base class for all other c++ stdlib based streaming classes.
int ucc::StreamProtocol::sync | ( | void | ) |
Flush the stream input and output buffers, writes pending output.
Reimplemented in ucc::sstream.
int ucc::StreamProtocol::uflow | ( | ) | [protected] |
This streambuf method is used for doing unbuffered reads through the establish tcp socket connection when in interactive mode.
Also this method will handle proper use of buffers if not in interactive mode.