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

P::NamedPipeServer Class Reference
[Core library]

Named pipe server. More...

#include <pnamedpipe.h>

List of all members.

Public Member Functions

 NamedPipeServer () throw ()
 Named pipe server constructor.

 NamedPipeServer (const char *name) throw (IOError)
 Named pipe server listen constructor.

 ~NamedPipeServer () throw ()
void listen (const char *name) throw (IOError)
void close () throw (IOError)
bool waitClient (unsigned int timeout) throw (IOError)
 Wait for client.

const std::string & path () const throw ()

Protected Member Functions

io_handle_t accept () throw (IOError)

Friends

class NamedPipe


Detailed Description

Named pipe server.

Named pipe server class used to create a named pipe and accept client connections. On UNIX systems named pipes are implemented using a PF_UNIX type socket.

Author:
Christian Prochnow <cproch@seculogix.de>

Definition at line 40 of file pnamedpipe.h.


Constructor & Destructor Documentation

P::NamedPipeServer::NamedPipeServer  )  throw ()
 

Named pipe server constructor.

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

Named pipe server listen constructor.

P::NamedPipeServer::~NamedPipeServer  )  throw ()
 


Member Function Documentation

io_handle_t P::NamedPipeServer::accept  )  throw (IOError) [protected]
 

void P::NamedPipeServer::close  )  throw (IOError)
 

void P::NamedPipeServer::listen const char *  name  )  throw (IOError)
 

const std::string& P::NamedPipeServer::path  )  const throw () [inline]
 

Definition at line 64 of file pnamedpipe.h.

bool P::NamedPipeServer::waitClient unsigned int  timeout  )  throw (IOError)
 

Wait for client.

Waits for a client to connect to the named pipe.

Parameters:
timeout timeout in milliseconds.
Returns:
true if a client has connected, false otherwise.


Friends And Related Function Documentation

friend class NamedPipe [friend]
 

Definition at line 42 of file pnamedpipe.h.


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