From 53e47ca947312981fd5773bb618aa5e5b1f2e1e3 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 30 Jul 2010 23:08:17 +0200 Subject: KNOWN_BUG: The SOCKET type in Win64 is 64 bits The SOCKET type in Win64 is 64 bits large (and thus so is curl_socket_t on that platform), and long is only 32 bits. It makes it impossible for curl_easy_getinfo() to return a socket properly with the CURLINFO_LASTSOCKET option as for all other operating systems. --- docs/libcurl/curl_easy_getinfo.3 | 3 +++ 1 file changed, 3 insertions(+) (limited to 'docs/libcurl/curl_easy_getinfo.3') diff --git a/docs/libcurl/curl_easy_getinfo.3 b/docs/libcurl/curl_easy_getinfo.3 index b80eacf7d..9f298ed71 100644 --- a/docs/libcurl/curl_easy_getinfo.3 +++ b/docs/libcurl/curl_easy_getinfo.3 @@ -198,6 +198,9 @@ working with the socket, you must call curl_easy_cleanup() as usual and let libcurl close the socket and cleanup other resources associated with the handle. This is typically used in combination with \fICURLOPT_CONNECT_ONLY\fP. (Added in 7.15.2) + +NOTE: this API is not really working on win64, since the SOCKET type on win64 +is 64 bit large while its 'long' is only 32 bits. .IP CURLINFO_FTP_ENTRY_PATH Pass a pointer to a char pointer to receive a pointer to a string holding the path of the entry path. That is the initial path libcurl ended up in when -- cgit v1.2.3