diff options
author | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2014-06-18 08:30:53 -0700 |
---|---|---|
committer | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2014-06-18 08:30:53 -0700 |
commit | 94fe2125da8619a76c5d38829543cb5818b73731 (patch) | |
tree | 004df2dbf34b5745ebdce81323e37fa7973eacd3 /includes | |
parent | e8c47f8e25ac311c9ac8f6fdabb43778fe695cd4 (diff) |
Starting to integrate cURL into Balau.
Diffstat (limited to 'includes')
-rw-r--r-- | includes/TaskMan.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/includes/TaskMan.h b/includes/TaskMan.h index eae78b9..a9eb490 100644 --- a/includes/TaskMan.h +++ b/includes/TaskMan.h @@ -1,6 +1,7 @@ #pragma once #include <stdint.h> +#include <curl/curl.h> #ifndef _WIN32 #include <coro.h> #endif @@ -102,6 +103,10 @@ class TaskMan { int m_stopCode = 0; bool m_stopped = false; bool m_allowedToSignal = false; + CURLM * m_curlMulti = false; + int m_curlStillRunning = 0; + static int curlSocketCallback(CURL * easy, curl_socket_t s, int what, void * userp, void * socketp); + static int curlMultiTimerCallback(CURLM * multi, long timeout_ms, void * userp); TaskMan(const TaskMan &) = delete; TaskMan & operator=(const TaskMan &) = delete; |