You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
CURLMOPT_SOCKETFUNCTION.md example uses wrong argument #19840
The callback for CURLMOPT_SOCKETFUNCTION receives two application-supplied data pointers, named clientp and socketp. The documentation says that clientp is set with CURLMOPT_SOCKETDATA and socketp is set with curl_multi_assign().
The example code does not use curl_multi_assign(), but its callback function uses socketp (called sockp in the function) to get the struct priv pointer instead of clientp (cbp) as I would expect.
Activity
CURLMOPT_SOCKETFUNCTION.md: fix the callback
CURLMOPT_SOCKETFUNCTION.md: fix the callback argument use