30 #ifndef CURL_GLOBAL_HXX
31 #define CURL_GLOBAL_HXX
61 void Assign(curl_socket_t fd, CurlSocket &cs) {
62 curl_multi_assign(multi.Get(), fd, &cs);
78 curl_multi_socket_all(multi.Get(), &running_handles);
82 void UpdateTimeout(
long timeout_ms);
83 static int TimerFunction(CURLM *global,
long timeout_ms,
void *userp);
86 void OnTimeout()
override;
89 void RunDeferred()
override;
This class monitors a timeout.
An event loop that polls for events on file/socket descriptors.
Defer execution of an event into an EventLoop.
void Add(CURL *easy, CurlRequest &request)
EventLoop & GetEventLoop()
An OO wrapper for a "CURLM*" (a libCURL "multi" handle).
void SocketAction(curl_socket_t fd, int ev_bitmask)
void ReadInfo()
Check for finished HTTP responses.
CurlGlobal(EventLoop &_loop)
void ResumeSockets()
This is a kludge to allow pausing/resuming a stream with libcurl < 7.32.0.
Manager for the global CURLM object.
void Assign(curl_socket_t fd, CurlSocket &cs)