![]() |
![]()
| ![]() |
![]()
NAMECURLOPT_ADDRESS_SCOPE - scope id for IPv6 addresses SYNOPSIS#include <curl/curl.h> CURLcode curl_easy_setopt(CURL *handle, CURLOPT_ADDRESS_SCOPE, long scope); DESCRIPTIONPass a long specifying the scope id value to use when connecting to IPv6 addresses. DEFAULT0 PROTOCOLSThis functionality affects all supported protocols EXAMPLE#include <net/if.h> /* for if_nametoindex() */ int main(void) { AVAILABILITYAdded in curl 7.19.0 RETURN VALUEcurl_easy_setopt(3) returns a CURLcode indicating success or error. CURLE_OK (0) means everything was OK, non-zero means an error occurred, see libcurl-errors(3). Returns CURLE_BAD_FUNCTION_ARGUMENT if set to a negative value. SEE ALSOCURLOPT_DEBUGFUNCTION(3), CURLOPT_STDERR(3)
|