Merge pull request #2309 from mitza-oci/warnings
[ACE_TAO.git] / ACE / apps / JAWS2 / JAWS / Server.h
blobafb49027a003ce292dcf1b0257d98d371bfe450f
1 /* -*- c++ -*- */
2 #ifndef JAWS_SERVER_H
3 #define JAWS_SERVER_H
5 #include "JAWS/Export.h"
6 #include "JAWS/Data_Block.h"
7 #include "JAWS/Policy.h"
9 class JAWS_IO_Handler_Factory;
11 class JAWS_Export JAWS_Server
13 public:
14 JAWS_Server ();
15 JAWS_Server (int argc, char *argv[]);
17 void init (int argc, char *argv[]);
18 int open (JAWS_Pipeline_Handler *ph, JAWS_Dispatch_Policy *dp = 0);
20 private:
21 void parse_args (int argc, ACE_TCHAR *argv[]);
22 // Parse arguments
24 private:
25 int ratio_; // ratio of asynch ops to threads
26 int port_; // port to listen on
27 int concurrency_; // 0 => pool, 1 => per request
28 int dispatch_; // 0 => synch, 1 => asynch
29 int nthreads_; // number of threads
30 int maxthreads_; // maximum number of threads
31 long flags_; // thread creation flags
33 JAWS_Default_Dispatch_Policy policy_;
37 #endif /* !defined (JAWS_SERVER_H) */