Home
last modified time | relevance | path

Searched refs:portnum (Results 1 – 4 of 4) sorted by relevance

/curl/tests/unit/
H A Dunit1653.c64 char *portnum; variable
100 ret = curl_url_get(u, CURLUPART_PORT, &portnum, 0);
102 fail_unless(portnum && !strcmp(portnum, "808"), "Check portnumber");
104 curl_free(portnum);
117 ret = curl_url_get(u, CURLUPART_PORT, &portnum, 0);
119 fail_unless(portnum && !strcmp(portnum, "80"), "Check portnumber");
120 curl_free(portnum);
147 fail_unless(portnum && !strcmp(portnum, "81"), "Check portnumber");
148 curl_free(portnum);
199 fail_unless(portnum && !strcmp(portnum, "180"), "Check portnumber");
[all …]
/curl/lib/
H A Durlapi.c82 unsigned short portnum; /* the numerical version (if 'port' is set) */ member
563 u->portnum = (unsigned short) port; in Curl_parse_port()
1409 u->portnum = in->portnum; in curl_url_dup()
1484 if(h && (h->defport == u->portnum) && in curl_url_get()
1552 if(h && (h->defport == u->portnum) && in curl_url_get()
1749 u->portnum = 0; in curl_url_set()
1841 u->portnum = (unsigned short)port; in curl_url_set()
H A Dtransfer.c855 char *portnum; in Curl_follow()
863 uc = curl_url_get(data->state.uh, CURLUPART_PORT, &portnum, in Curl_follow()
869 port = atoi(portnum); in Curl_follow()
870 free(portnum); in Curl_follow()
H A Dcf-socket.c572 int portnum = data->set.localportrange; in bindlocal() local
775 if(--portnum > 0) { in bindlocal()

Completed in 25 milliseconds