Man Page: curlinfo_primary_port
Operating Environment: mojave
Section: 3
CURLINFO_PRIMARY_PORT(3) curl_easy_getinfo options CURLINFO_PRIMARY_PORT(3)NAMECURLINFO_PRIMARY_PORT - get the latest destination port numberSYNOPSIS#include <curl/curl.h> CURLcode curl_easy_getinfo(CURL *handle, CURLINFO_PRIMARY_PORT, long *portp);DESCRIPTIONPass a pointer to a long to receive the destination port of the most recent connection done with this curl handle.PROTOCOLSAllEXAMPLETODOAVAILABILITYAdded in 7.21.0RETURN VALUEReturns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION if not.SEE ALSOcurl_easy_getinfo(3), curl_easy_setopt(3), libcurl 7.54.0 February 03, 2016 CURLINFO_PRIMARY_PORT(3)
| Related Man Pages |
|---|
| curlinfo_pretransfer_time(3) - mojave |
| curlinfo_lastsocket(3) - mojave |
| curlinfo_http_version(3) - mojave |
| curlinfo_num_connects(3) - mojave |
| curlinfo_scheme(3) - mojave |