#include <Pipe.h>
Inherited by PClient, and PServer.
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. | |
Definition at line 19 of file Pipe.h.
      
  | 
  ||||||||||||
| 
 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 }  | 
  
      
  | 
  
| 
 Base class Destructor Definition at line 30 of file Pipe.cpp. References clientStayConnected, and serverStayConnected. 
 00031 {
00032     CloseHandle(serverStayConnected);
00033     CloseHandle(clientStayConnected);
00034 } | 
  
1.2.13.1 written by Dimitri van Heesch,
 © 1997-2001