diff options
author | Daniel Stenberg <daniel@haxx.se> | 2006-08-03 21:31:23 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2006-08-03 21:31:23 +0000 |
commit | 51f258d1034171173771a4705afee323560dcca3 (patch) | |
tree | 4d56c091c0da01c03c86140e23173b7f56824141 /include | |
parent | 4c75f1c7b77e08f72e916aadeca63a9e3cf703a3 (diff) |
adding CURLM_CALL_MULTI_SOCKET that's just the same as CURLM_CALL_MULTI_PERFORM
Diffstat (limited to 'include')
-rw-r--r-- | include/curl/multi.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/curl/multi.h b/include/curl/multi.h index 3c8bb9e53..61842039d 100644 --- a/include/curl/multi.h +++ b/include/curl/multi.h @@ -96,7 +96,8 @@ typedef int curl_socket_t; #endif /* curl_socket_typedef */ typedef enum { - CURLM_CALL_MULTI_PERFORM = -1, /* please call curl_multi_perform() soon */ + CURLM_CALL_MULTI_PERFORM = -1, /* please call curl_multi_perform() or + curl_multi_socket*() soon */ CURLM_OK, CURLM_BAD_HANDLE, /* the passed-in handle is not a valid CURLM handle */ CURLM_BAD_EASY_HANDLE, /* an easy handle was not good/valid */ @@ -107,6 +108,11 @@ typedef enum { CURLM_LAST } CURLMcode; +/* just to make code nicer when using curl_multi_socket() you can now check + for CURLM_CALL_MULTI_SOCKET too in the same style it works for + curl_multi_perform() and CURLM_CALL_MULTI_PERFORM */ +#define CURLM_CALL_MULTI_SOCKET CURLM_CALL_MULTI_PERFORM + typedef enum { CURLMSG_NONE, /* first, not used */ CURLMSG_DONE, /* This easy handle has completed. 'result' contains |