home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / mandlcpp.zip / server.h < prev    next >
C/C++ Source or Header  |  1993-06-20  |  822b  |  40 lines

  1. #define INCL_DOSNMPIPES
  2. #include <stdio.h>
  3. #include <stdlib.h>
  4. #include <mem.h>
  5. #include <string.h>
  6. #include "process.h"
  7. #include "communication.h"
  8.  
  9.  
  10. class serverProcess;
  11.  
  12.  
  13. class serverThread:public thread
  14. {       public:
  15.     serverProcess *pServerProcess;
  16.     HPIPE hPipe;
  17.     serverThread(serverProcess *pProcessNew);
  18.     //virtual ~serverThread(void)
  19.     virtual Boolean create(void);
  20.     Boolean calculate(structRequest *pStructR);
  21.     virtual void doSomething(void);
  22.     virtual void destruct(void);
  23. };
  24.  
  25.  
  26. class serverMainThread:public thread
  27. {    public:
  28.     serverProcess *pServerProcess;
  29.     serverMainThread(serverProcess *pProcess);
  30.     virtual void doSomething(void);
  31. };
  32.  
  33.  
  34. class serverProcess:public process
  35. {    public:
  36.     char *pPipeName;
  37.     serverProcess(int argc, char **argv);
  38.     virtual Boolean create(void);
  39. };
  40.