summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authornanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-03-16 05:55:25 +0000
committernanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-03-16 05:55:25 +0000
commit504798f94f5bce92a3d294a4870887b67a7f231f (patch)
treed77a3c754a3a8f9b4c41d7765ebbec780d052379 /apps
parent9a0a4a1a05358e7e2c8c8c0a5bbf09b8aec3b6d7 (diff)
downloadATCD-504798f94f5bce92a3d294a4870887b67a7f231f.tar.gz
Allow HTTP_Server as a dynamic service.
Diffstat (limited to 'apps')
-rw-r--r--apps/JAWS/server/HTTP_Server.cpp5
-rw-r--r--apps/JAWS/server/HTTP_Server.h6
-rw-r--r--apps/JAWS/server/svc.conf9
3 files changed, 14 insertions, 6 deletions
diff --git a/apps/JAWS/server/HTTP_Server.cpp b/apps/JAWS/server/HTTP_Server.cpp
index 6aab0c4241b..b262b2ca5c8 100644
--- a/apps/JAWS/server/HTTP_Server.cpp
+++ b/apps/JAWS/server/HTTP_Server.cpp
@@ -1,5 +1,7 @@
// $Id$
+#define ACE_BUILD_SVC_DLL
+
#include "ace/Get_Opt.h"
#include "ace/Asynch_Acceptor.h"
#include "ace/LOCK_SOCK_Acceptor.h"
@@ -342,7 +344,7 @@ HTTP_Server::asynch_thread_pool (void)
// Create the thread pool.
// Register threads with the proactor and thread manager.
Asynch_Thread_Pool_Task t (*ACE_Proactor::instance (),
- this->tm_);
+ this->tm_);
// The proactor threads are waiting on the I/O Completion Port.
@@ -391,4 +393,3 @@ template class ACE_LOCK_SOCK_Acceptor<ACE_SYNCH_MUTEX>;
#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA)
#pragma instantiate ACE_LOCK_SOCK_Acceptor<ACE_SYNCH_MUTEX>
#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
-
diff --git a/apps/JAWS/server/HTTP_Server.h b/apps/JAWS/server/HTTP_Server.h
index 614f98b3e24..8f683297a96 100644
--- a/apps/JAWS/server/HTTP_Server.h
+++ b/apps/JAWS/server/HTTP_Server.h
@@ -41,7 +41,7 @@ typedef ACE_LOCK_SOCK_Acceptor<ACE_SYNCH_MUTEX> HTTP_SOCK_Acceptor;
typedef HTTP_SOCK_Acceptor HTTP_Acceptor;
-class HTTP_Server : public ACE_Service_Object
+class ACE_Svc_Export HTTP_Server : public ACE_Service_Object
// = TITLE
// This server is used to create HTTP Handlers for the Web
// server
@@ -134,8 +134,8 @@ private:
};
#endif /* ACE_WIN32 */
+ACE_SVC_FACTORY_DECLARE (HTTP_Server)
+
ACE_STATIC_SVC_DECLARE (HTTP_Server)
#endif /* HTTP_SERVER_H */
-
-
diff --git a/apps/JAWS/server/svc.conf b/apps/JAWS/server/svc.conf
index a180ee1b383..5f34c06aaa1 100644
--- a/apps/JAWS/server/svc.conf
+++ b/apps/JAWS/server/svc.conf
@@ -32,6 +32,13 @@ static HTTP_Server "HTTP_Server -p 5432 -n 20 -i SYNCH -t POOL -b 50 -f THR_NEW_
# Throttling, 40 threads
#static HTTP_Server "HTTP_Server -p 5432 -n 40 -i SYNCH -t THROTTLE -b 50 -f THR_NEW_LWP"
#
+
+#
+# Example for using HTTP_Server as a dynamic service
#
-#dynamic HTTP_Server Service_Object * .shobj/HTTP_Server:jaws "HTTP_Server -p 5432 -s HTTP_Service"
+# For NT.
+#dynamic HTTP_Server Service_Object * ./jaws.exe:_make_HTTP_Server() "HTTP_Server -p 5432 -n 20 -i SYNCH -t POOL -b 50 -f THR_NEW_LWP"
+#
+# For UNIX platforms.
+#dynamic HTTP_Server Service_Object * ./main:_make_HTTP_Server() "HTTP_Server -p 5432 -n 20 -i SYNCH -t POOL -b 50 -f THR_NEW_LWP"