libzypp 17.37.17
|
#include <zypp-curl/private/curlhelper_p.h>
Classes | |
struct | CurlPoll |
Public Member Functions | |
CurlPollHelper (CurlPoll &p) | |
~CurlPollHelper () | |
CURLMcode | handleSocketActions (const std::vector< GPollFD > &actionsFds, int first=0) |
CURLMcode | handleTimout () |
Static Public Member Functions | |
static int | socketcb (CURL *easy, curl_socket_t s, int what, CurlPollHelper *userp, void *sockp) |
static int | timercb (CURLM *, long timeout_ms, CurlPollHelper *thatPtr) |
Public Attributes | |
CurlPoll & | _parent |
std::vector< GPollFD > | socks |
std::optional< long > | timeout_ms = 0 |
Helper class to simplify using the curl multi API, takes care of remembering the registered sockets and the required curl timeout.
Definition at line 78 of file curlhelper_p.h.
internal::CurlPollHelper::CurlPollHelper | ( | CurlPoll & | p | ) |
Definition at line 436 of file curlhelper.cc.
internal::CurlPollHelper::~CurlPollHelper | ( | ) |
Definition at line 443 of file curlhelper.cc.
CURLMcode internal::CurlPollHelper::handleSocketActions | ( | const std::vector< GPollFD > & | actionsFds, |
int | first = 0 ) |
Iterator over the passed in poll fd's and call curl_multi_socket_action on them if one of them signals that events have happened
Definition at line 493 of file curlhelper.cc.
CURLMcode internal::CurlPollHelper::handleTimout | ( | ) |
Tells libcurl that the requested timeout was reached.
Definition at line 520 of file curlhelper.cc.
|
static |
Callback for libcurl when it wants us to track or stop us from tracking a socket
Definition at line 450 of file curlhelper.cc.
|
static |
Callback for libcurl when it wants us to start/update/remove a timer
Definition at line 483 of file curlhelper.cc.
CurlPoll& internal::CurlPollHelper::_parent |
Definition at line 108 of file curlhelper_p.h.
std::vector<GPollFD> internal::CurlPollHelper::socks |
Definition at line 109 of file curlhelper_p.h.
std::optional<long> internal::CurlPollHelper::timeout_ms = 0 |
Definition at line 110 of file curlhelper_p.h.