aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2007-07-09 03:23:53 +0000
committerChristian Grothoff <christian@grothoff.org>2007-07-09 03:23:53 +0000
commite8343cd44d334e373b1d6602147f3c45bee23572 (patch)
treed730aa209ba1d97cdad8cde22818a66d604df09b
parent34a4897ae604cbe90963acea46553bb1401c10cd (diff)
downloadlibmicrohttpd-e8343cd44d334e373b1d6602147f3c45bee23572.tar.gz
libmicrohttpd-e8343cd44d334e373b1d6602147f3c45bee23572.zip
fix
-rw-r--r--src/daemon/daemontest.c25
1 files changed, 15 insertions, 10 deletions
diff --git a/src/daemon/daemontest.c b/src/daemon/daemontest.c
index 10e7229d..d0186f8f 100644
--- a/src/daemon/daemontest.c
+++ b/src/daemon/daemontest.c
@@ -56,20 +56,22 @@ static int ahc_nothing(void * cls,
56 struct MHD_Session * session, 56 struct MHD_Session * session,
57 const char * url, 57 const char * url,
58 const char * method, 58 const char * method,
59 const char * upload_data, 59 const char * upload_data,
60 unsigned int * upload_data_size) { 60 const char * version,
61 unsigned int * upload_data_size) {
61 return MHD_NO; 62 return MHD_NO;
62} 63}
63 64
64static int testStartStop() { 65static int testStartStop() {
65 struct MHD_Daemon * d; 66 struct MHD_Daemon * d;
66 67
67 d = MHD_start_daemon(MHD_USE_SELECT_INTERNALLY | MHD_USE_IPv4 | MHD_USE_DEBUG, 68 d = MHD_start_daemon(MHD_USE_SELECT_INTERNALLY | MHD_USE_DEBUG,
68 1080, 69 1080,
69 &apc_nothing, 70 &apc_nothing,
70 NULL, 71 NULL,
71 &ahc_nothing, 72 &ahc_nothing,
72 NULL); 73 NULL,
74 MHD_OPTION_END);
73 if (d == NULL) 75 if (d == NULL)
74 return 2; 76 return 2;
75 MHD_stop_daemon(d); 77 MHD_stop_daemon(d);
@@ -82,12 +84,13 @@ static int testExternalRun() {
82 int maxfd; 84 int maxfd;
83 int i; 85 int i;
84 86
85 d = MHD_start_daemon(MHD_USE_IPv4 | MHD_USE_DEBUG, 87 d = MHD_start_daemon(MHD_USE_DEBUG,
86 1081, 88 1081,
87 &apc_all, 89 &apc_all,
88 NULL, 90 NULL,
89 &ahc_nothing, 91 &ahc_nothing,
90 NULL); 92 NULL,
93 MHD_OPTION_END);
91 94
92 if (d == NULL) 95 if (d == NULL)
93 return 4; 96 return 4;
@@ -108,12 +111,13 @@ static int testExternalRun() {
108 111
109static int testThread() { 112static int testThread() {
110 struct MHD_Daemon * d; 113 struct MHD_Daemon * d;
111 d = MHD_start_daemon(MHD_USE_IPv4 | MHD_USE_DEBUG | MHD_USE_SELECT_INTERNALLY, 114 d = MHD_start_daemon(MHD_USE_DEBUG | MHD_USE_SELECT_INTERNALLY,
112 1082, 115 1082,
113 &apc_all, 116 &apc_all,
114 NULL, 117 NULL,
115 &ahc_nothing, 118 &ahc_nothing,
116 NULL); 119 NULL,
120 MHD_OPTION_END);
117 121
118 if (d == NULL) 122 if (d == NULL)
119 return 16; 123 return 16;
@@ -125,12 +129,13 @@ static int testThread() {
125 129
126static int testMultithread() { 130static int testMultithread() {
127 struct MHD_Daemon * d; 131 struct MHD_Daemon * d;
128 d = MHD_start_daemon(MHD_USE_IPv4 | MHD_USE_DEBUG | MHD_USE_THREAD_PER_CONNECTION, 132 d = MHD_start_daemon(MHD_USE_DEBUG | MHD_USE_THREAD_PER_CONNECTION,
129 1083, 133 1083,
130 &apc_all, 134 &apc_all,
131 NULL, 135 NULL,
132 &ahc_nothing, 136 &ahc_nothing,
133 NULL); 137 NULL,
138 MHD_OPTION_END);
134 139
135 if (d == NULL) 140 if (d == NULL)
136 return 64; 141 return 64;