Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members | Related Pages | Examples

P::NamedPipe Class Reference
[Core library]

Named pipe i/o device. More...

#include <pnamedpipe.h>

Inheritance diagram for P::NamedPipe:

P::IODevice List of all members.

Public Member Functions

 NamedPipe () throw ()
 Default constructor.

 NamedPipe (const char *name) throw (IOError)
 Connect constructor.

 NamedPipe (NamedPipeServer &srv) throw (IOError)
 Client accept constructor.

 ~NamedPipe () throw ()
void connect (const char *name) throw (IOError)
 Connect to given named pipe.

void close () throw (IOError)
 Close the connection.

size_t peek (char *buffer, size_t count) throw (IOError)
 Peek incoming data on device.

bool isSeekable () const throw ()
 Test if device is seekable.


Detailed Description

Named pipe i/o device.

Named pipe client (inbound & outbound). On UNIX systems named pipes are implemented using a PF_UNIX type socket.

Author:
Christian Prochnow <cproch@seculogix.de>

Definition at line 87 of file pnamedpipe.h.


Constructor & Destructor Documentation

P::NamedPipe::NamedPipe  )  throw ()
 

Default constructor.

P::NamedPipe::NamedPipe const char *  name  )  throw (IOError)
 

Connect constructor.

P::NamedPipe::NamedPipe NamedPipeServer srv  )  throw (IOError)
 

Client accept constructor.

P::NamedPipe::~NamedPipe  )  throw ()
 


Member Function Documentation

void P::NamedPipe::close  )  throw (IOError) [virtual]
 

Close the connection.

Reimplemented from P::IODevice.

void P::NamedPipe::connect const char *  name  )  throw (IOError)
 

Connect to given named pipe.

bool P::NamedPipe::isSeekable  )  const throw () [inline, virtual]
 

Test if device is seekable.

Reimplemented from P::IODevice.

Definition at line 108 of file pnamedpipe.h.

size_t P::NamedPipe::peek char *  buffer,
size_t  count
throw (IOError) [virtual]
 

Peek incoming data on device.

Retrieves data from the receive queue without removing it.

Parameters:
buffer pointer to buffer receiving the data
count size of the buffer
Returns:
number of received bytes

Reimplemented from P::IODevice.


The documentation for this class was generated from the following file:
Generated on Fri Mar 12 21:08:35 2004 for P::Classes by doxygen 1.3.3