From c4286ea5287279836c5ef49a06153db95429bfe6 Mon Sep 17 00:00:00 2001 From: snowdrop Date: Wed, 8 Feb 2006 11:13:13 +0000 Subject: the attached patches address the following issues: * query the port the server is listening on {soap_server,httpd}_get_port * the possibility to add a default service via httpd_register_default * remove some compiler warnings (on FreeBSD pthread_t is a pointer to a struct pthread, on Linux it is a (unsigned?) long int) tschuess, Heiko --- nanohttp/nanohttp-server.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'nanohttp/nanohttp-server.h') diff --git a/nanohttp/nanohttp-server.h b/nanohttp/nanohttp-server.h index 383b7be..ccafe8f 100644 --- a/nanohttp/nanohttp-server.h +++ b/nanohttp/nanohttp-server.h @@ -1,5 +1,5 @@ /****************************************************************** - * $Id: nanohttp-server.h,v 1.11 2006/01/10 11:29:05 snowdrop Exp $ + * $Id: nanohttp-server.h,v 1.12 2006/02/08 11:13:14 snowdrop Exp $ * * CSOAP Project: A http client/server library in C * Copyright (C) 2003 Ferhat Ayaz @@ -67,6 +67,8 @@ int httpd_register(const char *ctx, httpd_service service); herror_t httpd_run(); void httpd_destroy(); +int httpd_get_port(void); + hservice_t *httpd_services(); herror_t httpd_send_header(httpd_conn_t * res, int code, const char *text); @@ -74,6 +76,9 @@ herror_t httpd_send_header(httpd_conn_t * res, int code, const char *text); int httpd_set_header(httpd_conn_t * conn, const char *key, const char *value); void httpd_set_headers(httpd_conn_t * conn, hpair_t * header); +int httpd_add_header(httpd_conn_t * conn, const char *key, const char *value); +void httpd_add_headers(httpd_conn_t * conn, const hpair_t *values); + /* unsigned char *httpd_get_postdata(httpd_conn_t *conn, hrequest_t *req, long *received, long max); -- cgit v1.1-32-gdbae