Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TLMSP curl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CYBER - Cyber Security
TS 103 523 MSP
TLMSP
TLMSP curl
Commits
89977c73
Commit
89977c73
authored
16 years ago
by
Daniel Stenberg
Browse files
Options
Downloads
Patches
Plain Diff
Christopher Palow's multi interface docs updates
parent
a9a05a32
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
docs/libcurl/curl_multi_add_handle.3
+2
-0
2 additions, 0 deletions
docs/libcurl/curl_multi_add_handle.3
docs/libcurl/curl_multi_socket.3
+8
-11
8 additions, 11 deletions
docs/libcurl/curl_multi_socket.3
with
10 additions
and
11 deletions
docs/libcurl/curl_multi_add_handle.3
+
2
−
0
View file @
89977c73
...
...
@@ -11,6 +11,8 @@ CURLMcode curl_multi_add_handle(CURLM *multi_handle, CURL *easy_handle);
.SH DESCRIPTION
Adds a standard easy handle to the multi stack. This function call will make
this \fImulti_handle\fP control the specified \fIeasy_handle\fP.
Furthermore, libcurl now initiates the connection associated with the
specified \fIeasy_handle\fP.
When an easy handle has been added to a multi stack, you can not and you must
not use \fIcurl_easy_perform(3)\fP on that handle!
...
...
This diff is collapsed.
Click to expand it.
docs/libcurl/curl_multi_socket.3
+
8
−
11
View file @
89977c73
...
...
@@ -46,9 +46,8 @@ socket callback function set with the CURLMOPT_SOCKETFUNCTION option to
previous time this function was called.
Force libcurl to (re-)check all its internal sockets and transfers instead of
just a single one by calling \fBcurl_multi_socket_all(3)\fP. This is typically
done as the first function call before the application has any knowledge about
what sockets libcurl uses.
just a single one by calling \fBcurl_multi_socket_all(3)\fP. Note that there
should rarely be reasons to use this function!
Get the timeout time - how long to wait for socket actions at most before
doing the timeout action: call the \fBcurl_multi_socket(3)\fP function with
...
...
@@ -125,22 +124,20 @@ function returns OK.
3. Set the timeout callback with CURLMOPT_TIMERFUNCTION, to get to know what
timeout value to use when waiting for socket activities.
4. Add easy handles
4. Add easy handles
with curl_multi_add_handle()
5. Call curl_multi_socket_all() first once
6. Provide some means to manage the sockets libcurl is using, so you can check
5. Provide some means to manage the sockets libcurl is using, so you can check
them for activity. This can be done through your application code, or by way
of an external library such as libevent or glib.
7
. Wait for activity on any of libcurl's sockets, use the timeout value your
6
. Wait for activity on any of libcurl's sockets, use the timeout value your
callback has been told
8
, When activity is detected, call curl_multi_socket_action() for the
7
, When activity is detected, call curl_multi_socket_action() for the
socket(s) that got action. If no activity is detected and the timeout expires,
call \fIcurl_multi_socket(3)\fP with \fICURL_SOCKET_TIMEOUT\fP
call \fIcurl_multi_socket
_action
(3)\fP with \fICURL_SOCKET_TIMEOUT\fP
9
. Go back to step
7
.
8
. Go back to step
6
.
.SH AVAILABILITY
This function was added in libcurl 7.15.4, although deemed stable since
7.16.0.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment