Logo ROOT   6.14/05
Reference Guide
TFastCgi.h
Go to the documentation of this file.
1 // $Id$
2 // Author: Sergey Linev 28/12/2013
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2013, Rene Brun and Fons Rademakers. *
6  * All rights reserved. *
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. *
9  * For the list of contributors see $ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11 
12 #ifndef ROOT_TFastCgi
13 #define ROOT_TFastCgi
14 
15 #include "THttpEngine.h"
16 
17 class TThread;
18 
19 class TFastCgi : public THttpEngine {
20 protected:
21  Int_t fSocket; ///<! socket used by fastcgi
22  Bool_t fDebugMode; ///<! debug mode, may required for fastcgi debugging in other servers
23  TString fTopName; ///<! name of top item
24  TThread *fThrd; ///<! thread which takes requests, can be many later
25  Bool_t fTerminating; ///<! set when http server wants to terminate all engines
26 
27  virtual void Terminate() { fTerminating = kTRUE; }
28 
29 public:
30  TFastCgi();
31  virtual ~TFastCgi();
32 
33  Int_t GetSocket() const { return fSocket; }
34 
35  virtual Bool_t Create(const char *args);
36 
37  static void *run_func(void *);
38 };
39 
40 #endif
virtual Bool_t Create(const char *args)
initializes fastcgi variables and start thread, which will process incoming http requests ...
Definition: TFastCgi.cxx:127
TThread * fThrd
! thread which takes requests, can be many later
Definition: TFastCgi.h:24
Basic string class.
Definition: TString.h:131
int Int_t
Definition: RtypesCore.h:41
bool Bool_t
Definition: RtypesCore.h:59
Int_t fSocket
! socket used by fastcgi
Definition: TFastCgi.h:21
Bool_t fTerminating
! set when http server wants to terminate all engines
Definition: TFastCgi.h:25
TString fTopName
! name of top item
Definition: TFastCgi.h:23
virtual void Terminate()
Method called when server want to be terminated.
Definition: TFastCgi.h:27
Bool_t fDebugMode
! debug mode, may required for fastcgi debugging in other servers
Definition: TFastCgi.h:22
TFastCgi()
normal constructor
Definition: TFastCgi.cxx:96
virtual ~TFastCgi()
destructor
Definition: TFastCgi.cxx:105
Int_t GetSocket() const
Definition: TFastCgi.h:33
static void * run_func(void *)
Definition: TFastCgi.cxx:178
const Bool_t kTRUE
Definition: RtypesCore.h:87