curl/Easy: add SetTimeout()
This commit is contained in:
parent
c9590db188
commit
29b542fd36
|
@ -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),
|
||||
|
|
Loading…
Reference in New Issue