Logo ROOT   6.10/09
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 public:
26  TFastCgi();
27  virtual ~TFastCgi();
28 
29  Int_t GetSocket() const { return fSocket; }
30 
31  virtual Bool_t Create(const char *args);
32 
33  static void *run_func(void *);
34 
35  ClassDef(TFastCgi, 0) // fastcgi engine for THttpServer
36 };
37 
38 #endif
virtual Bool_t Create(const char *args)
initializes fastcgi variables and start thread, which will process incoming http requests ...
Definition: TFastCgi.cxx:130
TThread * fThrd
! thread which takes requests, can be many later
Definition: TFastCgi.h:24
Basic string class.
Definition: TString.h:129
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
#define ClassDef(name, id)
Definition: Rtypes.h:297
TString fTopName
! name of top item
Definition: TFastCgi.h:23
Bool_t fDebugMode
! debug mode, may required for fastcgi debugging in other servers
Definition: TFastCgi.h:22
TFastCgi()
normal constructor
Definition: TFastCgi.cxx:102
virtual ~TFastCgi()
destructor
Definition: TFastCgi.cxx:110
Int_t GetSocket() const
Definition: TFastCgi.h:29
static void * run_func(void *)
Definition: TFastCgi.cxx:177