Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members  

SoapServer.h

00001 #ifndef __SOAP_SERVER__
00002 #define __SOAP_SERVER__
00003 
00004 #include <Config.h>
00005 #include <Error.h>
00006 #include <UserPlugin.h>
00007 #include <string>
00008 #define MAX_THR  10
00009 
00010 
00052 class SoapServer : public UserPlugin {
00053 
00054 public:
00055   SoapServer( const Config &cfg );
00056   virtual ~SoapServer();
00057   void shutdown();
00058   void runServer();
00059   bool init();
00060   CoreError run();
00061 
00062   SoapSlave       *soapSlaves[MAX_THR]; /* the list of slaves that we have. */
00063   int             nextcon;              /* next available slot in soapSlaves */
00064   sem_t           connections;          /* protects slaves */
00065   SessionTracker  *sessions;
00066 
00067 private:
00068   struct soap     *soap_thr[MAX_THR]; /* each thread needs a runtime environment */
00069   pthread_t       tid[MAX_THR];       /* storage for each of the tread ids */
00070   pthread_t       serverThread;       /* serverthread. */
00071   sem_t shutd;
00072 
00073   // Bind to:
00074   string bindhost;
00075   int bindport;
00076 
00077 
00078 };
00079 
00080 #endif

Generated on Wed Feb 18 13:45:55 2004 for strongroom by doxygen1.2.18