summaryrefslogtreecommitdiffstats
path: root/nanohttp/nanohttp-server.c
diff options
context:
space:
mode:
authorGravatar m0gg2006-12-19 08:55:17 +0000
committerGravatar m0gg2006-12-19 08:55:17 +0000
commit2fbfdcdff09db6a1c0041022b208320d15e24d13 (patch)
tree554da23ed4ef5818669b40614b792e3b09271423 /nanohttp/nanohttp-server.c
parentb726c779ca481e1890c0abcb0f7f5947001b2e1e (diff)
downloadcsoap-2fbfdcdff09db6a1c0041022b208320d15e24d13.tar.gz
csoap-2fbfdcdff09db6a1c0041022b208320d15e24d13.tar.bz2
Adjust wording according to WS Management: Service Life Cycle
Diffstat (limited to 'nanohttp/nanohttp-server.c')
-rw-r--r--nanohttp/nanohttp-server.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/nanohttp/nanohttp-server.c b/nanohttp/nanohttp-server.c
index d9db9b1..078eb76 100644
--- a/nanohttp/nanohttp-server.c
+++ b/nanohttp/nanohttp-server.c
@@ -1,5 +1,5 @@
/******************************************************************
-* $Id: nanohttp-server.c,v 1.76 2006/12/16 17:30:36 m0gg Exp $
+* $Id: nanohttp-server.c,v 1.77 2006/12/19 08:55:17 m0gg Exp $
*
* CSOAP Project: A http client/server library in C
* Copyright (C) 2003 Ferhat Ayaz
@@ -327,7 +327,7 @@ httpd_register_secure(const char *ctx, httpd_service func, httpd_auth auth)
service->next = NULL;
service->auth = auth;
service->func = func;
- service->status = NHTTPD_SERVICE_ENABLED;
+ service->status = NHTTPD_SERVICE_UP;
strcpy(service->ctx, ctx);
log_verbose3("register service (%p) for \"%s\"", service, SAVE_STR(ctx));
@@ -434,7 +434,7 @@ int httpd_enable_service(hservice_t *service)
int ret;
ret = service->status;
- service->status = NHTTPD_SERVICE_ENABLED;
+ service->status = NHTTPD_SERVICE_UP;
return ret;
}
@@ -444,7 +444,7 @@ int httpd_disable_service(hservice_t *service)
int ret;
ret = service->status;
- service->status = NHTTPD_SERVICE_DISABLED;
+ service->status = NHTTPD_SERVICE_DOWN;
return ret;
}
@@ -741,7 +741,7 @@ httpd_session_main(void *data)
{
log_verbose3("service '%s' for '%s' found", service->ctx, req->path);
- if (service->status == NHTTPD_SERVICE_ENABLED)
+ if (service->status == NHTTPD_SERVICE_UP)
{
pthread_rwlock_wrlock(&(service->statistics->lock));
service->statistics->requests++;