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
16710a1c
Commit
16710a1c
authored
17 years ago
by
Daniel Stenberg
Browse files
Options
Downloads
Patches
Plain Diff
users should use the CURLMOPT_TIMERFUNCTION rather than curl_multi_timeout
when using the socket API
parent
ba5c71b7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/libcurl/curl_multi_socket.3
+12
-9
12 additions, 9 deletions
docs/libcurl/curl_multi_socket.3
with
12 additions
and
9 deletions
docs/libcurl/curl_multi_socket.3
+
12
−
9
View file @
16710a1c
...
...
@@ -106,7 +106,7 @@ The \fIuserp\fP argument is a private pointer you have previously set with
CURLMcode type, general libcurl multi interface error code.
If you receive \fICURLM_CALL_MULTI_PERFORM\fP, this basically means that you
should call \fIcurl_multi_
perform
\fP again, before you wait for more actions
should call \fIcurl_multi_
socket(3)
\fP again, before you wait for more actions
on libcurl's sockets. You don't have to do it immediately, but the return code
means that libcurl may have more data available to return or that there may be
more data to send off before it is "satisfied".
...
...
@@ -119,22 +119,25 @@ function returns OK.
2. Set the socket callback with CURLMOPT_SOCKETFUNCTION
3. Add easy handles
3. Set the timeout callback with CURLMOPT_TIMERFUNCTION, to get to know what
timeout value to use when waiting for socket activities.
4.
Call curl_multi_socket_all() first once
4.
Add easy handles
5. Provide some means to manage the sockets libcurl is using, so you can check
5. Call curl_multi_socket_all() first once
6. 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.
6. Use curl_multi_timeout() to figure out how long to wait for activity
7. Wait for activity on any of libcurl's sockets
7. Wait for activity on any of libcurl's sockets, use the timeout value your
calback has been told
8, When activity is detected, call curl_multi_socket_action() for the
socket(s) that got action.
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
9. Go back to step
6
.
9. Go back to step
7
.
.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