Public Types |
enum | access_t { RDONLY,
WRONLY,
RDWR
} |
Public Member Functions |
void | close (void) |
| Close an active stream connection.
|
int | err (void) const |
| Get error flag from last i/o operation.
|
| filestream () |
| Create an unopened pipe stream.
|
| filestream (const filestream ©) |
| Create duplicate stream.
|
| filestream (const char *path, unsigned mode, fsys::access_t access, size_t bufsize=512) |
| Create and open a file stream.
|
| filestream (const char *path, fsys::access_t access, size_t bufsize=512) |
| Open file stream.
|
void | open (const char *filename, fsys::access_t access, size_t buffering=512) |
| Open a stream connection to a tcp service.
|
void | open (const char *filename, unsigned mode, fsys::access_t access, size_t buffering=512) |
| Create a stream connection to a tcp service.
|
| operator bool () const |
| See if stream connection is active.
|
bool | operator! () const |
| See if stream is disconnected.
|
void | seek (fsys::offset_t offset) |
| Seek position.
|
virtual | ~filestream () |
| Destroy a file stream.
|
Protected Member Functions |
int | overflow (int ch) |
| This streambuf method is used to write the output buffer through the established pipe connection.
|
int | underflow (void) |
| This streambuf method is used to load the input buffer through the established pipe connection.
|
Protected Attributes |
fsys::access_t | ac |
fsys_t | fd |
Streamable tcp connection between client and server.
The tcp stream class can represent a client connection to a server or an instance of a service generated by a tcp listener. As a stream class, data can be manipulated using the << and >> operators.
- Author:
- David Sugar <dyfet@gnutelephony.org>
Definition at line 336 of file stream.h.