Public Types | Public Member Functions

base::Pipe Class Reference

Anonymous pipe for inter-process communication. More...

#include <libppbase/base/Pipe.h>

List of all members.

Public Types

enum  { pipeInbound = 1, pipeOutbound = 2, pipeDuplex = 3, pipeOverlapped = 4 }
 

Pipe modes.

More...

Public Member Functions

 Pipe ()
 Creates an empty object.
 ~Pipe ()
 Destructor.
void close ()
 Closes (deletes) the pipe pair.
void create (int mode)
 Creates a pipe pair.
FilegetLocalEnd ()
 Gets the local end of the pipe.
FilegetRemoteEnd ()
 Gets the remote end of the pipe.

Detailed Description

Anonymous pipe for inter-process communication.

Author:
Christoph Schwarz
Version:
$Id: Pipe.h 21 2010-09-05 04:18:17Z cschwarz1 $

Member Enumeration Documentation

anonymous enum

Pipe modes.

Enumerator:
pipeInbound 

inbound pipe

pipeOutbound 

outbound pipe

pipeDuplex 

duplex pipe

pipeOverlapped 

OR-flag: enable overlapped operations on local read end (Windows only).


Member Function Documentation

void base::Pipe::create ( int  mode  ) 

Creates a pipe pair.

Parameters:
mode give pipe mode (pipeInbound, pipeOutbound or pipeDuplex)
File* base::Pipe::getLocalEnd (  ) 

Gets the local end of the pipe.

Returns:
NULL if the pipe has not been created
File* base::Pipe::getRemoteEnd (  ) 

Gets the remote end of the pipe.

Returns:
NULL if the pipe has not been created

The documentation for this class was generated from the following file: