UCommon
|
Common stream buffer for std C++ i/o classes. More...
#include <stream.h>
Public Member Functions | |
bool | is_open (void) const |
operator bool () const | |
bool | operator! () const |
int | sync (void) |
Flush the stream input and output buffers, writes pending output. | |
Protected Member Functions | |
void | allocate (size_t size) |
void | release (void) |
int | uflow () |
This streambuf method is used for doing unbuffered reads through the establish tcp socket connection when in interactive mode. | |
Protected Attributes | |
size_t | bufsize |
char * | gbuf |
char * | pbuf |
Common stream buffer 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 ucommon::StreamBuffer::sync | ( | void | ) |
Flush the stream input and output buffers, writes pending output.
|
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.