UCommon
Public Member Functions | Protected Member Functions | Protected Attributes
ucommon::StreamProtocol Class Reference

Common stream protocol for std C++ i/o classes. More...

#include <stream.h>

Inheritance diagram for ucommon::StreamProtocol:
Inheritance graph
[legend]
Collaboration diagram for ucommon::StreamProtocol:
Collaboration graph
[legend]

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

Detailed Description

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.

Author:
David Sugar dyfet.nosp@m.@gnu.nosp@m.telep.nosp@m.hony.nosp@m..org

Definition at line 58 of file stream.h.


Member Function Documentation

Flush the stream input and output buffers, writes pending output.

Returns:
0 on success, or error code.

Reimplemented in ucommon::sstream.

int ucommon::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.

Returns:
char from tcp socket connection, EOF if not connected.

The documentation for this class was generated from the following file: