#include <yateclass.h>
Inheritance diagram for Stream:
Public Member Functions | |
virtual | ~Stream () |
int | error () const |
virtual bool | terminate ()=0 |
virtual bool | canRetry () const |
virtual bool | valid () const =0 |
virtual bool | setBlocking (bool block=true) |
virtual int | writeData (const void *buffer, int length)=0 |
int | writeData (const char *str) |
int | writeData (const String &str) |
int | writeData (const DataBlock &buf) |
virtual int | readData (void *buffer, int length)=0 |
Static Public Member Functions | |
static bool | allocPipe (Stream *&reader, Stream *&writer) |
static bool | allocPair (Stream *&str1, Stream *&str2) |
static bool | supportsPipes () |
static bool | supportsPairs () |
Protected Member Functions | |
Stream () | |
void | clearError () |
Protected Attributes | |
int | m_error |
Base class for encapsulating system dependent stream capable objects
|
Destructor, terminates the stream |
|
Default constructor |
|
Allocate a new pair of bidirectionally connected streams
|
|
Allocate a new pair of unidirectionally pipe connected streams
|
|
Check if the last error code indicates a retryable condition
|
|
Clear the last error code |
|
Get the error code of the last operation on this stream
|
|
Receive data from a connected stream
|
|
Set the blocking or non-blocking operation mode of the stream
|
|
Check if operating system supports bidirectional stream pairs
|
|
Check if operating system supports unidirectional stream pairs
|
|
Closes the stream
|
|
Check if this stream is valid
|
|
Write a Data block to a connected stream
|
|
Write a String to a connected stream
|
|
Write a C string to a connected stream
|
|
Write data to a connected stream
|