summaryrefslogtreecommitdiff
path: root/includes/TaskMan.h
diff options
context:
space:
mode:
authorNicolas "Pixel" Noble <pixel@nobis-crew.org>2014-06-18 17:33:35 -0700
committerNicolas "Pixel" Noble <pixel@nobis-crew.org>2014-06-18 17:33:35 -0700
commite3c2cf74256daf8131f39631d349a9fa9cacacc2 (patch)
treecb6c1626f3e6ceea3e7d321cc754d43a99e9add0 /includes/TaskMan.h
parentc8894935485859b4f14dbf8be9d087e1d7399980 (diff)
Adding basic CurlTask, as well as support for it in Balau. Also removing c++11-surrogates.h, as we're on a modern compiler now.
Diffstat (limited to 'includes/TaskMan.h')
-rw-r--r--includes/TaskMan.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/includes/TaskMan.h b/includes/TaskMan.h
index a9eb490..a51653b 100644
--- a/includes/TaskMan.h
+++ b/includes/TaskMan.h
@@ -103,10 +103,15 @@ class TaskMan {
int m_stopCode = 0;
bool m_stopped = false;
bool m_allowedToSignal = false;
+ ev::timer m_curlTimer;
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);
+ static int curlSocketCallbackStatic(CURL * easy, curl_socket_t s, int what, void * userp, void * socketp);
+ int curlSocketCallback(CURL * easy, curl_socket_t s, int what, void * socketp);
+ void curlSocketEventCallback(ev::io & w, int revents);
+ static int curlMultiTimerCallbackStatic(CURLM * multi, long timeout_ms, void * userp);
+ int curlMultiTimerCallback(CURLM * multi, long timeout_ms);
+ void curlMultiTimerEventCallback(ev::timer & w, int revents);
TaskMan(const TaskMan &) = delete;
TaskMan & operator=(const TaskMan &) = delete;