|
NAMECURLINFO_CONN_ID - get the ID of the last connection used by the handle SYNOPSIS#include <curl/curl.h> CURLcode curl_easy_getinfo(CURL *handle, CURLINFO_CONN_ID, DESCRIPTIONPass a pointer to a curl_off_t to receive the connection identifier last used by the handle. Stores -1 if there was no connection used. The connection id is unique among all connections using the same connection cache. This is implicitly the case for all connections in the same multi handle. PROTOCOLSThis functionality affects all supported protocols EXAMPLEint main(void)
{
AVAILABILITYAdded in curl 8.2.0 RETURN VALUEcurl_easy_getinfo(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). SEE ALSOCURLINFO_XFER_ID(3), curl_easy_getinfo(3), curl_easy_setopt(3)
|