socket_piper Class Reference

this class provides a socket creator for unnamed pipes More...

#include <unix_buffer.H>

List of all members.

Public Member Functions

 socket_piper ()
 create a pipe and store the two descriptors privately
 ~socket_piper ()
 destruct the pipe creator and undetached descriptors
std::istreamdetach_InPipe (const int bufsize=-1)
std::ostreamdetach_OutPipe (const int bufsize=-1)

Private Attributes

int socketdes [2]


Detailed Description

this class provides a socket creator for unnamed pipes

Definition at line 1316 of file unix_buffer.H.


Constructor & Destructor Documentation

socket_piper::socket_piper (  )  [inline]

create a pipe and store the two descriptors privately

Definition at line 1324 of file unix_buffer.H.

socket_piper::~socket_piper (  )  [inline]

destruct the pipe creator and undetached descriptors

Definition at line 1332 of file unix_buffer.H.


Member Function Documentation

std::istream* socket_piper::detach_InPipe ( const int  bufsize = -1  )  [inline]

spawn the read part of the constructed pipe and detach it

Parameters:
bufsize (optional) buffer size
Remarks:
buffersize<0 for system default buffer size

Definition at line 1344 of file unix_buffer.H.

std::ostream* socket_piper::detach_OutPipe ( const int  bufsize = -1  )  [inline]

spawn the write part of the constructed pipe and detach it

Parameters:
bufsize (optional) buffer size
Remarks:
buffersize<0 for system default buffer size

Definition at line 1360 of file unix_buffer.H.


Member Data Documentation

int socket_piper::socketdes[2] [private]

Definition at line 1319 of file unix_buffer.H.


The documentation for this class was generated from the following file:
Generated on Wed Nov 7 23:32:03 2007 for Qsieve by  doxygen 1.5.4