aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2016-11-07 23:15:42 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2016-11-08 00:54:59 +0300
commita48ca85fb74479a8a81e137138a30fab58f3eb1e (patch)
tree9089a6392d1c21466259a46f7139c18644274e5a /doc
parent4e4a1ce2bb9f6cd1d38fdc5f169d8956afab70c0 (diff)
downloadlibmicrohttpd-a48ca85fb74479a8a81e137138a30fab58f3eb1e.tar.gz
libmicrohttpd-a48ca85fb74479a8a81e137138a30fab58f3eb1e.zip
Renamed daemon flags:
MHD_USE_SELECT_INTERNALLY -> MHD_USE_INTERNAL_POLLING_THREAD MHD_USE_POLL_INTERNALLY -> MHD_USE_POLL_INTERNAL_THREAD MHD_USE_EPOLL_INTERNALLY -> MHD_USE_EPOLL_INTERNAL_THREAD
Diffstat (limited to 'doc')
-rw-r--r--doc/chapters/hellobrowser.inc2
-rw-r--r--doc/chapters/processingpost.inc2
-rw-r--r--doc/chapters/tlsauthentication.inc6
-rw-r--r--doc/examples/basicauthentication.c2
-rw-r--r--doc/examples/hellobrowser.c2
-rw-r--r--doc/examples/largepost.c2
-rw-r--r--doc/examples/logging.c2
-rw-r--r--doc/examples/responseheaders.c2
-rw-r--r--doc/examples/simplepost.c2
-rw-r--r--doc/examples/tlsauthentication.c2
-rw-r--r--doc/libmicrohttpd.texi12
11 files changed, 18 insertions, 18 deletions
diff --git a/doc/chapters/hellobrowser.inc b/doc/chapters/hellobrowser.inc
index bcd259b3..73b7b0b3 100644
--- a/doc/chapters/hellobrowser.inc
+++ b/doc/chapters/hellobrowser.inc
@@ -95,7 +95,7 @@ int main ()
95{ 95{
96 struct MHD_Daemon *daemon; 96 struct MHD_Daemon *daemon;
97 97
98 daemon = MHD_start_daemon (MHD_USE_SELECT_INTERNALLY, PORT, NULL, NULL, 98 daemon = MHD_start_daemon (MHD_USE_INTERNAL_POLLING_THREAD, PORT, NULL, NULL,
99 &answer_to_connection, NULL, MHD_OPTION_END); 99 &answer_to_connection, NULL, MHD_OPTION_END);
100 if (NULL == daemon) return 1; 100 if (NULL == daemon) return 1;
101 101
diff --git a/doc/chapters/processingpost.inc b/doc/chapters/processingpost.inc
index 92f93f55..920dac31 100644
--- a/doc/chapters/processingpost.inc
+++ b/doc/chapters/processingpost.inc
@@ -134,7 +134,7 @@ in the main function.
134 134
135@verbatim 135@verbatim
136... 136...
137daemon = MHD_start_daemon (MHD_USE_SELECT_INTERNALLY, PORT, NULL, NULL, 137daemon = MHD_start_daemon (MHD_USE_INTERNAL_POLLING_THREAD, PORT, NULL, NULL,
138 &answer_to_connection, NULL, 138 &answer_to_connection, NULL,
139 MHD_OPTION_NOTIFY_COMPLETED, &request_completed, NULL, 139 MHD_OPTION_NOTIFY_COMPLETED, &request_completed, NULL,
140 MHD_OPTION_END); 140 MHD_OPTION_END);
diff --git a/doc/chapters/tlsauthentication.inc b/doc/chapters/tlsauthentication.inc
index c1b66735..8bdfa764 100644
--- a/doc/chapters/tlsauthentication.inc
+++ b/doc/chapters/tlsauthentication.inc
@@ -68,7 +68,7 @@ main ()
68and then we point the @emph{MHD} daemon to it upon initalization. 68and then we point the @emph{MHD} daemon to it upon initalization.
69@verbatim 69@verbatim
70 70
71 daemon = MHD_start_daemon (MHD_USE_SELECT_INTERNALLY | MHD_USE_SSL, 71 daemon = MHD_start_daemon (MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_SSL,
72 PORT, NULL, NULL, 72 PORT, NULL, NULL,
73 &answer_to_connection, NULL, 73 &answer_to_connection, NULL,
74 MHD_OPTION_HTTPS_MEM_KEY, key_pem, 74 MHD_OPTION_HTTPS_MEM_KEY, key_pem,
@@ -138,7 +138,7 @@ To do this, you will need to link your application against @emph{gnutls}.
138Next, when you start the MHD daemon, you must specify the root CA that you're 138Next, when you start the MHD daemon, you must specify the root CA that you're
139willing to trust: 139willing to trust:
140@verbatim 140@verbatim
141 daemon = MHD_start_daemon (MHD_USE_SELECT_INTERNALLY | MHD_USE_SSL, 141 daemon = MHD_start_daemon (MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_SSL,
142 PORT, NULL, NULL, 142 PORT, NULL, NULL,
143 &answer_to_connection, NULL, 143 &answer_to_connection, NULL,
144 MHD_OPTION_HTTPS_MEM_KEY, key_pem, 144 MHD_OPTION_HTTPS_MEM_KEY, key_pem,
@@ -326,7 +326,7 @@ of one domain is that you need to provide a callback instead of the key
326and certificate. For example, when you start the MHD daemon, you could 326and certificate. For example, when you start the MHD daemon, you could
327do this: 327do this:
328@verbatim 328@verbatim
329 daemon = MHD_start_daemon (MHD_USE_SELECT_INTERNALLY | MHD_USE_SSL, 329 daemon = MHD_start_daemon (MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_SSL,
330 PORT, NULL, NULL, 330 PORT, NULL, NULL,
331 &answer_to_connection, NULL, 331 &answer_to_connection, NULL,
332 MHD_OPTION_HTTPS_CERT_CALLBACK, &sni_callback, 332 MHD_OPTION_HTTPS_CERT_CALLBACK, &sni_callback,
diff --git a/doc/examples/basicauthentication.c b/doc/examples/basicauthentication.c
index 407738be..22873d8c 100644
--- a/doc/examples/basicauthentication.c
+++ b/doc/examples/basicauthentication.c
@@ -71,7 +71,7 @@ main ()
71{ 71{
72 struct MHD_Daemon *daemon; 72 struct MHD_Daemon *daemon;
73 73
74 daemon = MHD_start_daemon (MHD_USE_SELECT_INTERNALLY, PORT, NULL, NULL, 74 daemon = MHD_start_daemon (MHD_USE_INTERNAL_POLLING_THREAD, PORT, NULL, NULL,
75 &answer_to_connection, NULL, MHD_OPTION_END); 75 &answer_to_connection, NULL, MHD_OPTION_END);
76 if (NULL == daemon) 76 if (NULL == daemon)
77 return 1; 77 return 1;
diff --git a/doc/examples/hellobrowser.c b/doc/examples/hellobrowser.c
index df38e72b..5031685c 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_SELECT_INTERNALLY, PORT, NULL, NULL, 42 daemon = MHD_start_daemon (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/largepost.c b/doc/examples/largepost.c
index dc0e76c0..edaebd0d 100644
--- a/doc/examples/largepost.c
+++ b/doc/examples/largepost.c
@@ -282,7 +282,7 @@ main ()
282{ 282{
283 struct MHD_Daemon *daemon; 283 struct MHD_Daemon *daemon;
284 284
285 daemon = MHD_start_daemon (MHD_USE_SELECT_INTERNALLY, 285 daemon = MHD_start_daemon (MHD_USE_INTERNAL_POLLING_THREAD,
286 PORT, NULL, NULL, 286 PORT, NULL, NULL,
287 &answer_to_connection, NULL, 287 &answer_to_connection, NULL,
288 MHD_OPTION_NOTIFY_COMPLETED, &request_completed, NULL, 288 MHD_OPTION_NOTIFY_COMPLETED, &request_completed, NULL,
diff --git a/doc/examples/logging.c b/doc/examples/logging.c
index c896a7dd..aff21426 100644
--- a/doc/examples/logging.c
+++ b/doc/examples/logging.c
@@ -43,7 +43,7 @@ main ()
43{ 43{
44 struct MHD_Daemon *daemon; 44 struct MHD_Daemon *daemon;
45 45
46 daemon = MHD_start_daemon (MHD_USE_SELECT_INTERNALLY, PORT, NULL, NULL, 46 daemon = MHD_start_daemon (MHD_USE_INTERNAL_POLLING_THREAD, PORT, NULL, NULL,
47 &answer_to_connection, NULL, MHD_OPTION_END); 47 &answer_to_connection, NULL, MHD_OPTION_END);
48 if (NULL == daemon) 48 if (NULL == daemon)
49 return 1; 49 return 1;
diff --git a/doc/examples/responseheaders.c b/doc/examples/responseheaders.c
index 1ab89e0f..aa5cd7e2 100644
--- a/doc/examples/responseheaders.c
+++ b/doc/examples/responseheaders.c
@@ -73,7 +73,7 @@ main ()
73{ 73{
74 struct MHD_Daemon *daemon; 74 struct MHD_Daemon *daemon;
75 75
76 daemon = MHD_start_daemon (MHD_USE_SELECT_INTERNALLY, PORT, NULL, NULL, 76 daemon = MHD_start_daemon (MHD_USE_INTERNAL_POLLING_THREAD, PORT, NULL, NULL,
77 &answer_to_connection, NULL, MHD_OPTION_END); 77 &answer_to_connection, NULL, MHD_OPTION_END);
78 if (NULL == daemon) 78 if (NULL == daemon)
79 return 1; 79 return 1;
diff --git a/doc/examples/simplepost.c b/doc/examples/simplepost.c
index d167151f..b0b458c7 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_SELECT_INTERNALLY, PORT, NULL, NULL, 186 daemon = MHD_start_daemon (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);
diff --git a/doc/examples/tlsauthentication.c b/doc/examples/tlsauthentication.c
index 41478136..742837e9 100644
--- a/doc/examples/tlsauthentication.c
+++ b/doc/examples/tlsauthentication.c
@@ -254,7 +254,7 @@ main ()
254 } 254 }
255 255
256 daemon = 256 daemon =
257 MHD_start_daemon (MHD_USE_SELECT_INTERNALLY | MHD_USE_TLS, PORT, NULL, 257 MHD_start_daemon (MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_TLS, PORT, NULL,
258 NULL, &answer_to_connection, NULL, 258 NULL, &answer_to_connection, NULL,
259 MHD_OPTION_HTTPS_MEM_KEY, key_pem, 259 MHD_OPTION_HTTPS_MEM_KEY, key_pem,
260 MHD_OPTION_HTTPS_MEM_CERT, cert_pem, MHD_OPTION_END); 260 MHD_OPTION_HTTPS_MEM_CERT, cert_pem, MHD_OPTION_END);
diff --git a/doc/libmicrohttpd.texi b/doc/libmicrohttpd.texi
index 82bf9b23..182c1dd9 100644
--- a/doc/libmicrohttpd.texi
+++ b/doc/libmicrohttpd.texi
@@ -436,14 +436,14 @@ compiler).
436Options for the MHD daemon. 436Options for the MHD daemon.
437 437
438Note that if neither @code{MHD_USE_THREAD_PER_CONNECTION} nor 438Note that if neither @code{MHD_USE_THREAD_PER_CONNECTION} nor
439@code{MHD_USE_SELECT_INTERNALLY} is used, the client wants control over 439@code{MHD_USE_INTERNAL_POLLING_THREAD} is used, the client wants control over
440the process and will call the appropriate microhttpd callbacks. 440the process and will call the appropriate microhttpd callbacks.
441 441
442Starting the daemon may also fail if a particular option is not 442Starting the daemon may also fail if a particular option is not
443implemented or not supported on the target platform (i.e. no support for 443implemented or not supported on the target platform (i.e. no support for
444@acronym{SSL}, threads or IPv6). SSL support generally depends on 444@acronym{SSL}, threads or IPv6). SSL support generally depends on
445options given during MHD compilation. Threaded operations 445options given during MHD compilation. Threaded operations
446(including @code{MHD_USE_SELECT_INTERNALLY}) are not supported on 446(including @code{MHD_USE_INTERNAL_POLLING_THREAD}) are not supported on
447Symbian. 447Symbian.
448 448
449@table @code 449@table @code
@@ -468,7 +468,7 @@ NULL.
468@item MHD_USE_THREAD_PER_CONNECTION 468@item MHD_USE_THREAD_PER_CONNECTION
469Run using one thread per connection. 469Run using one thread per connection.
470 470
471@item MHD_USE_SELECT_INTERNALLY 471@item MHD_USE_INTERNAL_POLLING_THREAD
472Run using an internal thread doing @code{SELECT}. 472Run using an internal thread doing @code{SELECT}.
473 473
474@item MHD_USE_IPv6 474@item MHD_USE_IPv6
@@ -890,7 +890,7 @@ with the "--disable-messages" flag.
890Number (unsigned int) of threads in thread pool. Enable 890Number (unsigned int) of threads in thread pool. Enable
891thread pooling by setting this value to to something 891thread pooling by setting this value to to something
892greater than 1. Currently, thread model must be 892greater than 1. Currently, thread model must be
893MHD_USE_SELECT_INTERNALLY if thread pooling is enabled 893MHD_USE_INTERNAL_POLLING_THREAD if thread pooling is enabled
894(@code{MHD_start_daemon} returns @code{NULL} for an unsupported thread 894(@code{MHD_start_daemon} returns @code{NULL} for an unsupported thread
895model). 895model).
896 896
@@ -2663,7 +2663,7 @@ Request the file-descriptor number that MHD is using for epoll. If
2663the build is not supporting epoll, NULL is returned; if we are using a 2663the build is not supporting epoll, NULL is returned; if we are using a
2664thread pool or this daemon was not started with 2664thread pool or this daemon was not started with
2665@code{MHD_USE_EPOLL}, (a pointer to) -1 is returned. If we are 2665@code{MHD_USE_EPOLL}, (a pointer to) -1 is returned. If we are
2666using @code{MHD_USE_SELECT_INTERNALLY} or are in 'external' select mode, the 2666using @code{MHD_USE_INTERNAL_POLLING_THREAD} or are in 'external' select mode, the
2667internal epoll FD is returned. This function must be used in external 2667internal epoll FD is returned. This function must be used in external
2668select mode with epoll to obtain the FD to call epoll on. No extra 2668select mode with epoll to obtain the FD to call epoll on. No extra
2669arguments should be passed. 2669arguments should be passed.
@@ -2891,7 +2891,7 @@ MHD_USE_POLL can be used.
2891@item MHD_FEATURE_EPOLL 2891@item MHD_FEATURE_EPOLL
2892Get whether @code{epoll()} is supported. If supported then Flags 2892Get whether @code{epoll()} is supported. If supported then Flags
2893MHD_USE_EPOLL and 2893MHD_USE_EPOLL and
2894MHD_USE_EPOLL_INTERNALLY can be used. 2894MHD_USE_EPOLL_INTERNAL_THREAD can be used.
2895 2895
2896@item MHD_FEATURE_SHUTDOWN_LISTEN_SOCKET 2896@item MHD_FEATURE_SHUTDOWN_LISTEN_SOCKET
2897Get whether shutdown on listen socket to signal other 2897Get whether shutdown on listen socket to signal other