aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2016-11-10 21:47:33 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2016-11-10 22:18:20 +0300
commit4b795e9fc603ccddeea2599c6919f80029837136 (patch)
tree38eb7da38dcba1076d7c331e9d5fc5f5d79869aa /doc
parenta22746fc8514f7c947b8433a0ee7d35c735a7bd6 (diff)
downloadlibmicrohttpd-4b795e9fc603ccddeea2599c6919f80029837136.tar.gz
libmicrohttpd-4b795e9fc603ccddeea2599c6919f80029837136.zip
Added MHD_USE_AUTO and MHD_USE_AUTO_INTERNAL_THREAD to simplify using of MHD by multi-platform applications
Diffstat (limited to 'doc')
-rw-r--r--doc/examples/hellobrowser.c2
-rw-r--r--doc/examples/simplepost.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/doc/examples/hellobrowser.c b/doc/examples/hellobrowser.c
index 5031685c..381a51e0 100644
--- a/doc/examples/hellobrowser.c
+++ b/doc/examples/hellobrowser.c
@@ -39,7 +39,7 @@ main ()
39{ 39{
40 struct MHD_Daemon *daemon; 40 struct MHD_Daemon *daemon;
41 41
42 daemon = MHD_start_daemon (MHD_USE_INTERNAL_POLLING_THREAD, PORT, NULL, NULL, 42 daemon = MHD_start_daemon (MHD_USE_AUTO | MHD_USE_INTERNAL_POLLING_THREAD, PORT, NULL, NULL,
43 &answer_to_connection, NULL, MHD_OPTION_END); 43 &answer_to_connection, NULL, MHD_OPTION_END);
44 if (NULL == daemon) 44 if (NULL == daemon)
45 return 1; 45 return 1;
diff --git a/doc/examples/simplepost.c b/doc/examples/simplepost.c
index b0b458c7..a6c3a69d 100644
--- a/doc/examples/simplepost.c
+++ b/doc/examples/simplepost.c
@@ -183,7 +183,7 @@ main ()
183{ 183{
184 struct MHD_Daemon *daemon; 184 struct MHD_Daemon *daemon;
185 185
186 daemon = MHD_start_daemon (MHD_USE_INTERNAL_POLLING_THREAD, PORT, NULL, NULL, 186 daemon = MHD_start_daemon (MHD_USE_AUTO | MHD_USE_INTERNAL_POLLING_THREAD, PORT, NULL, NULL,
187 &answer_to_connection, NULL, 187 &answer_to_connection, NULL,
188 MHD_OPTION_NOTIFY_COMPLETED, request_completed, 188 MHD_OPTION_NOTIFY_COMPLETED, request_completed,
189 NULL, MHD_OPTION_END); 189 NULL, MHD_OPTION_END);