Public Types |
enum | access_t { RDONLY,
WRONLY,
RDWR
} |
Public Member Functions |
void | cancel (void) |
int | close (void) |
| Close an active stream connection.
|
void | open (const char *path, access_t access, char **args, char **env=((void *) 0), size_t buffering=512) |
| Open a stream connection to a pipe service.
|
| operator bool () const |
| See if stream connection is active.
|
bool | operator! () const |
| See if stream is disconnected.
|
| pipestream () |
| Create an unopened pipe stream.
|
| pipestream (const char *command, access_t access, char **args, char **env=((void *) 0), size_t size=512) |
| Create child process and start pipe.
|
void | terminate (void) |
| Force terminate child and close.
|
virtual | ~pipestream () |
| Destroy a pipe stream.
|
Protected Member Functions |
int | overflow (int ch) |
| This streambuf method is used to write the output buffer through the established pipe connection.
|
void | release (void) |
| Release the stream, detach/do not wait for the process.
|
int | underflow (void) |
| This streambuf method is used to load the input buffer through the established pipe connection.
|
Protected Attributes |
shell::pid_t | pid |
fsys_t | rd |
fsys_t | wr |
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 230 of file stream.h.