libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit e8343cd44d334e373b1d6602147f3c45bee23572
parent 34a4897ae604cbe90963acea46553bb1401c10cd
Author: Christian Grothoff <christian@grothoff.org>
Date:   Mon,  9 Jul 2007 03:23:53 +0000

fix

Diffstat:
Msrc/daemon/daemontest.c | 25+++++++++++++++----------
1 file changed, 15 insertions(+), 10 deletions(-)

diff --git a/src/daemon/daemontest.c b/src/daemon/daemontest.c @@ -56,20 +56,22 @@ static int ahc_nothing(void * cls, struct MHD_Session * session, const char * url, const char * method, - const char * upload_data, - unsigned int * upload_data_size) { + const char * upload_data, + const char * version, + unsigned int * upload_data_size) { return MHD_NO; } static int testStartStop() { struct MHD_Daemon * d; - d = MHD_start_daemon(MHD_USE_SELECT_INTERNALLY | MHD_USE_IPv4 | MHD_USE_DEBUG, + d = MHD_start_daemon(MHD_USE_SELECT_INTERNALLY | MHD_USE_DEBUG, 1080, &apc_nothing, NULL, &ahc_nothing, - NULL); + NULL, + MHD_OPTION_END); if (d == NULL) return 2; MHD_stop_daemon(d); @@ -82,12 +84,13 @@ static int testExternalRun() { int maxfd; int i; - d = MHD_start_daemon(MHD_USE_IPv4 | MHD_USE_DEBUG, + d = MHD_start_daemon(MHD_USE_DEBUG, 1081, &apc_all, NULL, &ahc_nothing, - NULL); + NULL, + MHD_OPTION_END); if (d == NULL) return 4; @@ -108,12 +111,13 @@ static int testExternalRun() { static int testThread() { struct MHD_Daemon * d; - d = MHD_start_daemon(MHD_USE_IPv4 | MHD_USE_DEBUG | MHD_USE_SELECT_INTERNALLY, + d = MHD_start_daemon(MHD_USE_DEBUG | MHD_USE_SELECT_INTERNALLY, 1082, &apc_all, NULL, &ahc_nothing, - NULL); + NULL, + MHD_OPTION_END); if (d == NULL) return 16; @@ -125,12 +129,13 @@ static int testThread() { static int testMultithread() { struct MHD_Daemon * d; - d = MHD_start_daemon(MHD_USE_IPv4 | MHD_USE_DEBUG | MHD_USE_THREAD_PER_CONNECTION, + d = MHD_start_daemon(MHD_USE_DEBUG | MHD_USE_THREAD_PER_CONNECTION, 1083, &apc_all, NULL, &ahc_nothing, - NULL); + NULL, + MHD_OPTION_END); if (d == NULL) return 64;