aboutsummaryrefslogtreecommitdiff
path: root/src/examples
diff options
context:
space:
mode:
Diffstat (limited to 'src/examples')
-rw-r--r--src/examples/authorization_example.c2
-rw-r--r--src/examples/chunked_example.c8
-rw-r--r--src/examples/demo.c2
-rw-r--r--src/examples/demo_https.c2
-rw-r--r--src/examples/digest_auth_example.c2
-rw-r--r--src/examples/dual_stack_example.c2
-rw-r--r--src/examples/fileserver_example.c2
-rw-r--r--src/examples/fileserver_example_dirs.c2
-rw-r--r--src/examples/fileserver_example_external_select.c2
-rw-r--r--src/examples/https_fileserver_example.c2
-rw-r--r--src/examples/minimal_example.c8
-rw-r--r--src/examples/minimal_example_comet.c2
-rw-r--r--src/examples/post_example.c2
-rw-r--r--src/examples/querystring_example.c2
-rw-r--r--src/examples/refuse_post_example.c2
-rw-r--r--src/examples/upgrade_example.c2
16 files changed, 22 insertions, 22 deletions
diff --git a/src/examples/authorization_example.c b/src/examples/authorization_example.c
index eb478104..d34e6e18 100644
--- a/src/examples/authorization_example.c
+++ b/src/examples/authorization_example.c
@@ -106,7 +106,7 @@ main (int argc, char *const *argv)
106 return 1; 106 return 1;
107 } 107 }
108 108
109 d = MHD_start_daemon (MHD_USE_THREAD_PER_CONNECTION | MHD_USE_DEBUG, 109 d = MHD_start_daemon (MHD_USE_THREAD_PER_CONNECTION | MHD_USE_ERROR_LOG,
110 atoi (argv[1]), 110 atoi (argv[1]),
111 NULL, NULL, &ahc_echo, PAGE, MHD_OPTION_END); 111 NULL, NULL, &ahc_echo, PAGE, MHD_OPTION_END);
112 if (d == NULL) 112 if (d == NULL)
diff --git a/src/examples/chunked_example.c b/src/examples/chunked_example.c
index c9baa5b4..98987aec 100644
--- a/src/examples/chunked_example.c
+++ b/src/examples/chunked_example.c
@@ -78,10 +78,10 @@ main (int argc, char *const *argv)
78 printf ("%s PORT\n", argv[0]); 78 printf ("%s PORT\n", argv[0]);
79 return 1; 79 return 1;
80 } 80 }
81 d = MHD_start_daemon (// MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_DEBUG | MHD_USE_POLL, 81 d = MHD_start_daemon (// MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_ERROR_LOG | MHD_USE_POLL,
82 MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_DEBUG, 82 MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_ERROR_LOG,
83 // MHD_USE_THREAD_PER_CONNECTION | MHD_USE_DEBUG | MHD_USE_POLL, 83 // MHD_USE_THREAD_PER_CONNECTION | MHD_USE_ERROR_LOG | MHD_USE_POLL,
84 // MHD_USE_THREAD_PER_CONNECTION | MHD_USE_DEBUG, 84 // MHD_USE_THREAD_PER_CONNECTION | MHD_USE_ERROR_LOG,
85 atoi (argv[1]), 85 atoi (argv[1]),
86 NULL, NULL, &ahc_echo, NULL, 86 NULL, NULL, &ahc_echo, NULL,
87 MHD_OPTION_CONNECTION_TIMEOUT, (unsigned int) 120, 87 MHD_OPTION_CONNECTION_TIMEOUT, (unsigned int) 120,
diff --git a/src/examples/demo.c b/src/examples/demo.c
index ef2a1780..40ffcc2d 100644
--- a/src/examples/demo.c
+++ b/src/examples/demo.c
@@ -883,7 +883,7 @@ main (int argc, char *const *argv)
883 MHD_RESPMEM_PERSISTENT); 883 MHD_RESPMEM_PERSISTENT);
884 mark_as_html (internal_error_response); 884 mark_as_html (internal_error_response);
885 update_directory (); 885 update_directory ();
886 d = MHD_start_daemon (MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_DEBUG 886 d = MHD_start_daemon (MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_ERROR_LOG
887#ifdef EPOLL_SUPPORT 887#ifdef EPOLL_SUPPORT
888 | MHD_USE_EPOLL 888 | MHD_USE_EPOLL
889#endif 889#endif
diff --git a/src/examples/demo_https.c b/src/examples/demo_https.c
index ee8643c0..f9734de9 100644
--- a/src/examples/demo_https.c
+++ b/src/examples/demo_https.c
@@ -932,7 +932,7 @@ main (int argc, char *const *argv)
932 MHD_RESPMEM_PERSISTENT); 932 MHD_RESPMEM_PERSISTENT);
933 mark_as_html (internal_error_response); 933 mark_as_html (internal_error_response);
934 update_directory (); 934 update_directory ();
935 d = MHD_start_daemon (MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_DEBUG | MHD_USE_TLS 935 d = MHD_start_daemon (MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_ERROR_LOG | MHD_USE_TLS
936#ifdef EPOLL_SUPPORT 936#ifdef EPOLL_SUPPORT
937 | MHD_USE_EPOLL 937 | MHD_USE_EPOLL
938#endif 938#endif
diff --git a/src/examples/digest_auth_example.c b/src/examples/digest_auth_example.c
index 62c99cfa..82317af2 100644
--- a/src/examples/digest_auth_example.c
+++ b/src/examples/digest_auth_example.c
@@ -123,7 +123,7 @@ main (int argc, char *const *argv)
123 off += len; 123 off += len;
124 } 124 }
125 (void) close(fd); 125 (void) close(fd);
126 d = MHD_start_daemon (MHD_USE_THREAD_PER_CONNECTION | MHD_USE_DEBUG, 126 d = MHD_start_daemon (MHD_USE_THREAD_PER_CONNECTION | MHD_USE_ERROR_LOG,
127 atoi (argv[1]), 127 atoi (argv[1]),
128 NULL, NULL, &ahc_echo, PAGE, 128 NULL, NULL, &ahc_echo, PAGE,
129 MHD_OPTION_DIGEST_AUTH_RANDOM, sizeof(rnd), rnd, 129 MHD_OPTION_DIGEST_AUTH_RANDOM, sizeof(rnd), rnd,
diff --git a/src/examples/dual_stack_example.c b/src/examples/dual_stack_example.c
index 04ca3ca1..6b3cef83 100644
--- a/src/examples/dual_stack_example.c
+++ b/src/examples/dual_stack_example.c
@@ -68,7 +68,7 @@ main (int argc, char *const *argv)
68 printf ("%s PORT\n", argv[0]); 68 printf ("%s PORT\n", argv[0]);
69 return 1; 69 return 1;
70 } 70 }
71 d = MHD_start_daemon (MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_DEBUG | MHD_USE_DUAL_STACK, 71 d = MHD_start_daemon (MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_ERROR_LOG | MHD_USE_DUAL_STACK,
72 atoi (argv[1]), 72 atoi (argv[1]),
73 NULL, NULL, &ahc_echo, PAGE, 73 NULL, NULL, &ahc_echo, PAGE,
74 MHD_OPTION_CONNECTION_TIMEOUT, (unsigned int) 120, 74 MHD_OPTION_CONNECTION_TIMEOUT, (unsigned int) 120,
diff --git a/src/examples/fileserver_example.c b/src/examples/fileserver_example.c
index 9637bffc..546e2e1a 100644
--- a/src/examples/fileserver_example.c
+++ b/src/examples/fileserver_example.c
@@ -129,7 +129,7 @@ main (int argc, char *const *argv)
129 printf ("%s PORT\n", argv[0]); 129 printf ("%s PORT\n", argv[0]);
130 return 1; 130 return 1;
131 } 131 }
132 d = MHD_start_daemon (MHD_USE_THREAD_PER_CONNECTION | MHD_USE_DEBUG, 132 d = MHD_start_daemon (MHD_USE_THREAD_PER_CONNECTION | MHD_USE_ERROR_LOG,
133 atoi (argv[1]), 133 atoi (argv[1]),
134 NULL, NULL, &ahc_echo, PAGE, MHD_OPTION_END); 134 NULL, NULL, &ahc_echo, PAGE, MHD_OPTION_END);
135 if (d == NULL) 135 if (d == NULL)
diff --git a/src/examples/fileserver_example_dirs.c b/src/examples/fileserver_example_dirs.c
index e0a6362c..c6a86e02 100644
--- a/src/examples/fileserver_example_dirs.c
+++ b/src/examples/fileserver_example_dirs.c
@@ -190,7 +190,7 @@ main (int argc, char *const *argv)
190 printf ("%s PORT\n", argv[0]); 190 printf ("%s PORT\n", argv[0]);
191 return 1; 191 return 1;
192 } 192 }
193 d = MHD_start_daemon (MHD_USE_THREAD_PER_CONNECTION | MHD_USE_DEBUG, 193 d = MHD_start_daemon (MHD_USE_THREAD_PER_CONNECTION | MHD_USE_ERROR_LOG,
194 atoi (argv[1]), 194 atoi (argv[1]),
195 NULL, NULL, &ahc_echo, PAGE, MHD_OPTION_END); 195 NULL, NULL, &ahc_echo, PAGE, MHD_OPTION_END);
196 if (NULL == d) 196 if (NULL == d)
diff --git a/src/examples/fileserver_example_external_select.c b/src/examples/fileserver_example_external_select.c
index 6f7d83c4..1ae79e16 100644
--- a/src/examples/fileserver_example_external_select.c
+++ b/src/examples/fileserver_example_external_select.c
@@ -135,7 +135,7 @@ main (int argc, char *const *argv)
135 printf ("%s PORT SECONDS-TO-RUN\n", argv[0]); 135 printf ("%s PORT SECONDS-TO-RUN\n", argv[0]);
136 return 1; 136 return 1;
137 } 137 }
138 d = MHD_start_daemon (MHD_USE_DEBUG, 138 d = MHD_start_daemon (MHD_USE_ERROR_LOG,
139 atoi (argv[1]), 139 atoi (argv[1]),
140 NULL, NULL, &ahc_echo, PAGE, MHD_OPTION_END); 140 NULL, NULL, &ahc_echo, PAGE, MHD_OPTION_END);
141 if (d == NULL) 141 if (d == NULL)
diff --git a/src/examples/https_fileserver_example.c b/src/examples/https_fileserver_example.c
index 0b072cfc..b2862af3 100644
--- a/src/examples/https_fileserver_example.c
+++ b/src/examples/https_fileserver_example.c
@@ -191,7 +191,7 @@ main (int argc, char *const *argv)
191 /* TODO check if this is truly necessary - disallow usage of the blocking /dev/random */ 191 /* TODO check if this is truly necessary - disallow usage of the blocking /dev/random */
192 /* gcry_control(GCRYCTL_ENABLE_QUICK_RANDOM, 0); */ 192 /* gcry_control(GCRYCTL_ENABLE_QUICK_RANDOM, 0); */
193 TLS_daemon = 193 TLS_daemon =
194 MHD_start_daemon (MHD_USE_THREAD_PER_CONNECTION | MHD_USE_DEBUG | 194 MHD_start_daemon (MHD_USE_THREAD_PER_CONNECTION | MHD_USE_ERROR_LOG |
195 MHD_USE_TLS, atoi (argv[1]), NULL, NULL, &http_ahc, 195 MHD_USE_TLS, atoi (argv[1]), NULL, NULL, &http_ahc,
196 NULL, MHD_OPTION_CONNECTION_TIMEOUT, 256, 196 NULL, MHD_OPTION_CONNECTION_TIMEOUT, 256,
197 MHD_OPTION_HTTPS_MEM_KEY, key_pem, 197 MHD_OPTION_HTTPS_MEM_KEY, key_pem,
diff --git a/src/examples/minimal_example.c b/src/examples/minimal_example.c
index a1138f20..c356210d 100644
--- a/src/examples/minimal_example.c
+++ b/src/examples/minimal_example.c
@@ -67,10 +67,10 @@ main (int argc, char *const *argv)
67 printf ("%s PORT\n", argv[0]); 67 printf ("%s PORT\n", argv[0]);
68 return 1; 68 return 1;
69 } 69 }
70 d = MHD_start_daemon (// MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_DEBUG | MHD_USE_POLL, 70 d = MHD_start_daemon (// MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_ERROR_LOG | MHD_USE_POLL,
71 MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_DEBUG, 71 MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_ERROR_LOG,
72 // MHD_USE_THREAD_PER_CONNECTION | MHD_USE_DEBUG | MHD_USE_POLL, 72 // MHD_USE_THREAD_PER_CONNECTION | MHD_USE_ERROR_LOG | MHD_USE_POLL,
73 // MHD_USE_THREAD_PER_CONNECTION | MHD_USE_DEBUG, 73 // MHD_USE_THREAD_PER_CONNECTION | MHD_USE_ERROR_LOG,
74 atoi (argv[1]), 74 atoi (argv[1]),
75 NULL, NULL, &ahc_echo, PAGE, 75 NULL, NULL, &ahc_echo, PAGE,
76 MHD_OPTION_CONNECTION_TIMEOUT, (unsigned int) 120, 76 MHD_OPTION_CONNECTION_TIMEOUT, (unsigned int) 120,
diff --git a/src/examples/minimal_example_comet.c b/src/examples/minimal_example_comet.c
index 0c9d264b..83057ae2 100644
--- a/src/examples/minimal_example_comet.c
+++ b/src/examples/minimal_example_comet.c
@@ -74,7 +74,7 @@ main (int argc, char *const *argv)
74 printf ("%s PORT\n", argv[0]); 74 printf ("%s PORT\n", argv[0]);
75 return 1; 75 return 1;
76 } 76 }
77 d = MHD_start_daemon (MHD_USE_THREAD_PER_CONNECTION | MHD_USE_DEBUG, 77 d = MHD_start_daemon (MHD_USE_THREAD_PER_CONNECTION | MHD_USE_ERROR_LOG,
78 atoi (argv[1]), 78 atoi (argv[1]),
79 NULL, NULL, &ahc_echo, NULL, MHD_OPTION_END); 79 NULL, NULL, &ahc_echo, NULL, MHD_OPTION_END);
80 if (d == NULL) 80 if (d == NULL)
diff --git a/src/examples/post_example.c b/src/examples/post_example.c
index d0872cc5..2d83e0a4 100644
--- a/src/examples/post_example.c
+++ b/src/examples/post_example.c
@@ -715,7 +715,7 @@ main (int argc, char *const *argv)
715 } 715 }
716 /* initialize PRNG */ 716 /* initialize PRNG */
717 srand ((unsigned int) time (NULL)); 717 srand ((unsigned int) time (NULL));
718 d = MHD_start_daemon (MHD_USE_DEBUG, 718 d = MHD_start_daemon (MHD_USE_ERROR_LOG,
719 atoi (argv[1]), 719 atoi (argv[1]),
720 NULL, NULL, 720 NULL, NULL,
721 &create_response, NULL, 721 &create_response, NULL,
diff --git a/src/examples/querystring_example.c b/src/examples/querystring_example.c
index 24f8ae4c..9844afd3 100644
--- a/src/examples/querystring_example.c
+++ b/src/examples/querystring_example.c
@@ -79,7 +79,7 @@ main (int argc, char *const *argv)
79 printf ("%s PORT\n", argv[0]); 79 printf ("%s PORT\n", argv[0]);
80 return 1; 80 return 1;
81 } 81 }
82 d = MHD_start_daemon (MHD_USE_THREAD_PER_CONNECTION | MHD_USE_DEBUG, 82 d = MHD_start_daemon (MHD_USE_THREAD_PER_CONNECTION | MHD_USE_ERROR_LOG,
83 atoi (argv[1]), 83 atoi (argv[1]),
84 NULL, NULL, &ahc_echo, PAGE, MHD_OPTION_END); 84 NULL, NULL, &ahc_echo, PAGE, MHD_OPTION_END);
85 if (d == NULL) 85 if (d == NULL)
diff --git a/src/examples/refuse_post_example.c b/src/examples/refuse_post_example.c
index 846546c4..a834b952 100644
--- a/src/examples/refuse_post_example.c
+++ b/src/examples/refuse_post_example.c
@@ -86,7 +86,7 @@ main (int argc, char *const *argv)
86 printf ("%s PORT\n", argv[0]); 86 printf ("%s PORT\n", argv[0]);
87 return 1; 87 return 1;
88 } 88 }
89 d = MHD_start_daemon (MHD_USE_THREAD_PER_CONNECTION | MHD_USE_DEBUG, 89 d = MHD_start_daemon (MHD_USE_THREAD_PER_CONNECTION | MHD_USE_ERROR_LOG,
90 atoi (argv[1]), 90 atoi (argv[1]),
91 NULL, NULL, &ahc_echo, (void *) askpage, 91 NULL, NULL, &ahc_echo, (void *) askpage,
92 MHD_OPTION_END); 92 MHD_OPTION_END);
diff --git a/src/examples/upgrade_example.c b/src/examples/upgrade_example.c
index c03755f4..dcb20fc8 100644
--- a/src/examples/upgrade_example.c
+++ b/src/examples/upgrade_example.c
@@ -275,7 +275,7 @@ main (int argc,
275 printf ("%s PORT\n", argv[0]); 275 printf ("%s PORT\n", argv[0]);
276 return 1; 276 return 1;
277 } 277 }
278 d = MHD_start_daemon (MHD_ALLOW_UPGRADE | MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_DEBUG, 278 d = MHD_start_daemon (MHD_ALLOW_UPGRADE | MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_ERROR_LOG,
279 atoi (argv[1]), 279 atoi (argv[1]),
280 NULL, NULL, 280 NULL, NULL,
281 &ahc_echo, NULL, 281 &ahc_echo, NULL,