Commit 29b542fd authored by Max Kellermann's avatar Max Kellermann Committed by Max Kellermann

curl/Easy: add SetTimeout()

parent c9590db1
......@@ -135,6 +135,10 @@ public:
SetOption(CURLOPT_CONNECTTIMEOUT, timeout);
}
void SetTimeout(long timeout) {
SetOption(CURLOPT_TIMEOUT, timeout);
}
void SetHeaderFunction(size_t (*function)(char *buffer, size_t size,
size_t nitems,
void *userdata),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment