OverSim
XmlRpcThreadedServer.h
Go to the documentation of this file.
1 
2 #ifndef _XMLRPCTHREADEDSERVER_H_
3 #define _XMLRPCTHREADEDSERVER_H_
4 //
5 // XmlRpc++ Copyright (c) 2002-2003 by Chris Morley
6 //
7 
13 #if defined(_MSC_VER)
14 # pragma warning(disable:4786) // identifier was truncated in debug info
15 #endif
16 
17 #ifndef MAKEDEPEND
18 # include <map>
19 # include <vector>
20 #endif
21 
22 
23 #include "XmlRpcMutex.h"
24 #include "XmlRpcServer.h"
25 #include "XmlRpcThread.h"
26 
27 
28 namespace XmlRpc {
29 
32  public:
33 
35  XmlRpcThreadedServer(int nWorkers = 6) : _workers(nWorkers) {}
36 
37 
39 
40  protected:
41 
46  public:
49 
51  void run();
52 
53  protected:
54 
57 
58  };
59 
60 
62  std::vector<Worker> _workers;
63 
64 
67 
68 
69  }; // class XmlRpcThreadedServer
70 
71 }
72 
73 #endif // _XMLRPCTHREADEDSERVER_H_