Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

curlinfo_num_connects(3) [mojave man page]

CURLINFO_NUM_CONNECTS(3)				     curl_easy_getinfo options					  CURLINFO_NUM_CONNECTS(3)

NAME
CURLINFO_NUM_CONNECTS - get number of created connections SYNOPSIS
#include <curl/curl.h> CURLcode curl_easy_getinfo(CURL *handle, CURLINFO_NUM_CONNECTS, long *nump); DESCRIPTION
Pass a pointer to a long to receive how many new connections libcurl had to create to achieve the previous transfer (only the successful connects are counted). Combined with CURLINFO_REDIRECT_COUNT(3) you are able to know how many times libcurl successfully reused existing connection(s) or not. See the connection options of curl_easy_setopt(3) to see how libcurl tries to make persistent connections to save time. PROTOCOLS
All EXAMPLE
TODO AVAILABILITY
Added in 7.12.3 RETURN VALUE
Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION if not. SEE ALSO
curl_easy_getinfo(3), curl_easy_setopt(3), libcurl 7.54.0 February 03, 2016 CURLINFO_NUM_CONNECTS(3)

Check Out this Related Man Page

CURLINFO_LOCAL_PORT(3)					     curl_easy_getinfo options					    CURLINFO_LOCAL_PORT(3)

NAME
CURLINFO_LOCAL_PORT - get the latest local port number SYNOPSIS
#include <curl/curl.h> CURLcode curl_easy_getinfo(CURL *handle, CURLINFO_LOCAL_PORT, long *portp); DESCRIPTION
Pass a pointer to a long to receive the local port number of the most recent connection done with this curl handle. PROTOCOLS
All EXAMPLE
{ CURL *curl; CURLcode res; curl = curl_easy_init(); if(curl) { curl_easy_setopt(curl, CURLOPT_URL, "http://example.com/"); res = curl_easy_perform(curl); if(CURLE_OK == res) { long port; res = curl_easy_getinfo(curl, CURLINFO_LOCAL_PORT, &port); if(CURLE_OK == res) { printf("We used local port: %ld ", port); } } curl_easy_cleanup(curl); } return 0; } AVAILABILITY
Added in 7.21.0 RETURN VALUE
Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION if not. SEE ALSO
curl_easy_getinfo(3), curl_easy_setopt(3), CURLINFO_PRIMARY_PORT(3), CURLINFO_LOCAL_IP(3), libcurl 7.54.0 March 16, 2017 CURLINFO_LOCAL_PORT(3)
Man Page

5 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Establishing connections

Hello there, just a quick question.....Can someone please explain the concept that enables you to establish a connection using the same userId Thanx (1 Reply)
Discussion started by: BigTool4u2
1 Replies

2. HP-UX

HP-UX: X connections...?

Hello All, I have 2 qries about X connections on HP-UX : 1.How/where to determine whether "X connections" to the server are controlled. 2. How/where to determine whether "X11 connection" are tunnelled via ssh. 3. How/where to determine the "Time in minutes before unattended X terminals... (0 Replies)
Discussion started by: abhayh
0 Replies

3. Programming

getoptlong

Hi..., I am using the getoptlong() function to handle the options. For some options I am having the long option and for some other I don't want the long option. So, what I have to specify in the place of long option field when declaring the longopt array. (1 Reply)
Discussion started by: nagalenoj
1 Replies

4. AIX

All exisiting connections from AIX 5.3

Hi, In an AIX 5.3 machine, I want to know all existing network connections going out from the box. NETSTAT command will gove me all the active connections. I want all the connections (active or inactive). Is there any command or file that will give this ? (5 Replies)
Discussion started by: ajeeb
5 Replies

5. UNIX for Advanced & Expert Users

Help with netstat

Hi, I want to list the time for how long a secure connections last to my server/blade. i am using netstat command to get the same, but not sure how to get the time for how long connections is being ESTABLISHED. netstat -na | grep 'ESTABLISHED' | grep :443 |awk '{print $4}' | cut -d: -f1 |... (1 Reply)
Discussion started by: Siddheshk
1 Replies