Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

Pipe Class Reference

The Pipe Abstract class. More...

#include <Pipe.h>

Inherited by PClient, and PServer.

List of all members.

Public Methods

virtual void disconnect ()=0
 Pipe (const TString &, const bool)
virtual ~Pipe ()

Protected Attributes

HANDLE hPipe
 Handle to the Pipe.

HANDLE clientStayConnected
 Event that should be signaled while a client should be connected.

HANDLE serverStayConnected
 Event that should be signaled while a server should be connected.

const TString pipeName
 The named Pipes name.

const bool isOutbound
 true if this pipe is outbound.


Detailed Description

The abstract class for pipe based communication with VCC

Definition at line 19 of file Pipe.h.


Constructor & Destructor Documentation

Pipe::Pipe const TString   name,
const bool    isOut
 

The base class constructor constructs the pipes name and stores it as a constant TString. The named disconnection events are created.

Definition at line 17 of file Pipe.cpp.

References clientStayConnected, and serverStayConnected.

00018 : pipeName( TEXT("\\\\.\\pipe\\") + name ), isOutbound( isOut )
00019 {
00020     serverStayConnected = CreateEvent(NULL, true, false, TEXT("SCEVENT") + name);
00021     clientStayConnected = CreateEvent(NULL, true, false, TEXT("CCEVENT") + name);
00022 
00023     assert( serverStayConnected != NULL );
00024     assert( clientStayConnected != NULL );
00025 }

Pipe::~Pipe   [virtual]
 

Base class Destructor

Definition at line 30 of file Pipe.cpp.

References clientStayConnected, and serverStayConnected.

00031 {
00032     CloseHandle(serverStayConnected);
00033     CloseHandle(clientStayConnected);
00034 }


The documentation for this class was generated from the following files:
Generated on Mon Mar 25 06:30:00 2002 for Window Dressing by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001