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

PServer.h

Go to the documentation of this file.
00001 // PServer.h: interface for the PServer class.
00004 
00005 
00006 #if !defined(AFX_PSERVER_H__57E5677C_537F_45F6_88FA_31884EA62D1A__INCLUDED_)
00007 #define AFX_PSERVER_H__57E5677C_537F_45F6_88FA_31884EA62D1A__INCLUDED_
00008 
00009 #if _MSC_VER > 1000
00010 #pragma once
00011 #endif // _MSC_VER > 1000
00012 
00013 #include "Pipe.h"
00014 
00022 class PServer : public Pipe
00023 {
00024 public:
00025     HANDLE getConnectedEventHandle();
00026 
00027     DWORD getAttemptConnectResult() const;
00028     bool isConnected();
00029 
00030     virtual bool serve();
00031     virtual void disconnect();
00032 
00033     PServer(const TString&, const bool, const DWORD = 0);
00034     virtual ~PServer();
00035 
00036 private:
00037     static DWORD WINAPI waitForClient(LPVOID);
00038 
00039     HANDLE hConnectThread;  
00040 
00041     DWORD in;       
00042     DWORD out;      
00043 
00044     // No thread safe guards added.  Structure of code ensures only one thread ever writting
00045     volatile bool connected; 
00046 };
00047 
00048 
00049 #endif // !defined(AFX_PSERVER_H__57E5677C_537F_45F6_88FA_31884EA62D1A__INCLUDED_)

Generated on Mon Mar 25 06:29:59 2002 for Window Dressing by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001