summaryrefslogtreecommitdiff
path: root/docs/libcurl/curl_multi_setopt.3
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2021-10-25 08:54:08 +0200
committerDaniel Stenberg <daniel@haxx.se>2021-10-25 12:57:01 +0200
commit24155569d8a23bcd537d2242318340168e3be249 (patch)
treec2b4a9e992ebc41cf12e4aa2d2eaead73246d901 /docs/libcurl/curl_multi_setopt.3
parentc2e804ca47cc82f5a6fadd6a64841b5977be499a (diff)
downloadcurl-24155569d8a23bcd537d2242318340168e3be249.tar.gz
man pages: require all to use the same section header order
This is the same order we already enforce among the options' man pages: consistency is good. Add lots of previously missing examples. Adjust the manpage-syntax script for this purpose, used in test 1173. Closes #7904
Diffstat (limited to 'docs/libcurl/curl_multi_setopt.3')
-rw-r--r--docs/libcurl/curl_multi_setopt.39
1 files changed, 7 insertions, 2 deletions
diff --git a/docs/libcurl/curl_multi_setopt.3 b/docs/libcurl/curl_multi_setopt.3
index fc3526f3a..d21265385 100644
--- a/docs/libcurl/curl_multi_setopt.3
+++ b/docs/libcurl/curl_multi_setopt.3
@@ -69,12 +69,17 @@ See \fICURLMOPT_TIMERFUNCTION(3)\fP
See \fICURLMOPT_TIMERDATA(3)\fP
.IP CURLMOPT_MAX_CONCURRENT_STREAMS
See \fICURLMOPT_MAX_CONCURRENT_STREAMS(3)\fP
+.SH EXAMPLE
+.fi
+ /* Limit the amount of simultaneous connections curl should allow: */
+ curl_multi_setopt(handle, CURLMOPT_MAXCONNECTS, (long)MAX_PARALLEL);
+.nf
+.SH AVAILABILITY
+Added in libcurl 7.15.4.
.SH RETURN VALUE
The standard CURLMcode for multi interface error codes. Note that it returns a
CURLM_UNKNOWN_OPTION if you try setting an option that this version of libcurl
doesn't know of.
-.SH AVAILABILITY
-This function was added in libcurl 7.15.4.
.SH "SEE ALSO"
.BR curl_multi_cleanup "(3), " curl_multi_init "(3), "
.BR curl_multi_socket "(3), " curl_multi_info_read "(3)"