diff options
author | Razvan Cojocaru <rcojocaru@bitdefender.com> | 2015-08-21 10:29:05 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2015-08-24 12:34:17 +0200 |
commit | 62f306ff34f569020ce54451da7c841d162710ac (patch) | |
tree | 573f8b2cb9fdc34e6d06d35ac0fb8c90f1b4b6d9 /include | |
parent | 36f6f6f4f2331dbd276a8455ecdafc16aceecb80 (diff) | |
download | curl-62f306ff34f569020ce54451da7c841d162710ac.tar.gz |
getinfo: added CURLINFO_ACTIVESOCKET
This patch addresses known bug #76, where on 64-bit Windows SOCKET is 64
bits wide, but long is only 32, making CURLINFO_LASTSOCKET unreliable.
Signed-off-by: Razvan Cojocaru <rcojocaru@bitdefender.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/curl/curl.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/curl/curl.h b/include/curl/curl.h index 459506a0d..11d90f018 100644 --- a/include/curl/curl.h +++ b/include/curl/curl.h @@ -2091,6 +2091,7 @@ struct curl_tlssessioninfo { #define CURLINFO_LONG 0x200000 #define CURLINFO_DOUBLE 0x300000 #define CURLINFO_SLIST 0x400000 +#define CURLINFO_SOCKET 0x500000 #define CURLINFO_MASK 0x0fffff #define CURLINFO_TYPEMASK 0xf00000 @@ -2139,9 +2140,10 @@ typedef enum { CURLINFO_LOCAL_IP = CURLINFO_STRING + 41, CURLINFO_LOCAL_PORT = CURLINFO_LONG + 42, CURLINFO_TLS_SESSION = CURLINFO_SLIST + 43, + CURLINFO_ACTIVESOCKET = CURLINFO_SOCKET + 44, /* Fill in new entries below here! */ - CURLINFO_LASTONE = 43 + CURLINFO_LASTONE = 44 } CURLINFO; /* CURLINFO_RESPONSE_CODE is the new name for the option previously known as |