aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Startup.c32
1 files changed, 29 insertions, 3 deletions
diff --git a/src/Startup.c b/src/Startup.c
index 06d8e30..e147b31 100644
--- a/src/Startup.c
+++ b/src/Startup.c
@@ -47,6 +47,7 @@ static void HTTP_SetupPollingThread(cGH *cctkGH);
********************************************************************/
int HTTP_Startup(void);
+int HTTP_FirstServ(void);
void HTTP_Work(CCTK_ARGUMENTS);
int HTTP_Shutdown(void);
@@ -70,11 +71,11 @@ static int thread_started = 0;
/*@@
- @routine HTTP_Startup
+ @routine HTTP_StartServer
@date Wed Sep 13 21:26:56 2000
@author Tom Goodale
@desc
- Startup routine for the webserver.
+ Starts the webserver.
@enddesc
@calls
@calledby
@@ -84,7 +85,7 @@ static int thread_started = 0;
@@*/
-int HTTP_Startup(void)
+int HTTP_StartServer(void)
{
int use_port;
httpState state;
@@ -136,6 +137,31 @@ int HTTP_Startup(void)
/* Do we need to redirect to a master server ? */
HTTP_SetupRedirect(use_port,queue_length,hunt);
+ return 0;
+}
+
+ /*@@
+ @routine HTTP_FirstServ
+ @date Tue Nov 12 20:32:36 2002
+ @author Tom Goodale
+ @desc
+ Listens for connection requests.
+ @enddesc
+ @calls
+ @calledby
+ @history
+ @hdate Tue Nov 12 20:33:07 2002 @hauthor Tom Goodale
+ @hdesc This was originally in HTTP_StartServer but
+ that made it impossible to spawn a task telling
+ it where the webserver was if httpd::pause was "true".
+ @endhistory
+
+ @@*/
+int HTTP_FirstServ(void)
+{
+
+ httpState state;
+
HTTP_UpdateState(NULL, &state);
do