aboutsummaryrefslogtreecommitdiff
path: root/lib/socks.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2007-04-16 16:34:08 +0000
committerDaniel Stenberg <daniel@haxx.se>2007-04-16 16:34:08 +0000
commit76627b322e369c209c60863b9e1f05e3ce02953d (patch)
tree74658f06175743e0518963b8e5ed9e37eae3f1c5 /lib/socks.c
parent827228bd69f8dd17824ae878d6211809b193eaff (diff)
- Robert Iakobashvil added curl_multi_socket_action() to libcurl, which is a
function that deprecates the curl_multi_socket() function. Using the new function the application tell libcurl what action that was found in the socket that it passes in. This gives a significant performance boost as it allows libcurl to avoid a call to poll()/select() for every call to curl_multi_socket*().
Diffstat (limited to 'lib/socks.c')
-rw-r--r--lib/socks.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/socks.c b/lib/socks.c
index 1157b960c..6b95e752d 100644
--- a/lib/socks.c
+++ b/lib/socks.c
@@ -383,7 +383,7 @@ CURLcode Curl_SOCKS5(const char *proxy_name,
return CURLE_OPERATION_TIMEDOUT;
}
- if(result & CSELECT_ERR) {
+ if(result & CURL_CSELECT_ERR) {
failf(conn->data, "SOCKS5: error occured during connection");
return CURLE_COULDNT_CONNECT;
}
@@ -415,7 +415,7 @@ CURLcode Curl_SOCKS5(const char *proxy_name,
return CURLE_OPERATION_TIMEDOUT;
}
- if(result & CSELECT_ERR) {
+ if(result & CURL_CSELECT_ERR) {
failf(conn->data, "SOCKS5 read error occured");
return CURLE_RECV_ERROR;
}