Home
last modified time | relevance | path

Searched refs:portnum (Results 1 - 19 of 19) sorted by relevance

/third_party/curl/tests/unit/
H A Dunit1653.c64 char *portnum; variable
75 ret = curl_url_get(u, CURLUPART_PORT, &portnum, CURLU_NO_DEFAULT_PORT);
76 fail_unless(ret != CURLUE_OK, "curl_url_get portnum returned something");
100 ret = curl_url_get(u, CURLUPART_PORT, &portnum, 0);
101 fail_unless(ret == CURLUE_OK, "curl_url_get portnum returned error");
102 fail_unless(portnum && !strcmp(portnum, "808"), "Check portnumber");
104 curl_free(portnum); variable
117 ret = curl_url_get(u, CURLUPART_PORT, &portnum, 0);
118 fail_unless(ret == CURLUE_OK, "curl_url_get portnum returne
120 curl_free(portnum); global() variable
148 curl_free(portnum); global() variable
200 curl_free(portnum); global() variable
[all...]
/third_party/openssl/crypto/http/
H A Dhttp_lib.c48 unsigned int portnum; in OSSL_parse_url() local
113 if (!sscanf(port, "%u", &portnum) || portnum > 65535) { in OSSL_parse_url()
157 *pport_num = (int)portnum; in OSSL_parse_url()
189 int ssl = 0, portnum; in OSSL_HTTP_parse_url() local
215 if (!ossl_assert(sscanf(port, "%d", &portnum) == 1)) in OSSL_HTTP_parse_url()
218 *pport_num = portnum; in OSSL_HTTP_parse_url()
/third_party/ltp/testcases/network/stress/ns-tools/
H A Dns-mcast_receiver.c167 char *portnum; /* listen port number in character string */ in parse_options() local
171 portnum = NULL; in parse_options()
228 portnum = strdup(optarg); in parse_options()
268 if (portnum == NULL) { in parse_options()
273 info_p->mainfo = get_maddrinfo(family, maddr, portnum); in parse_options()
287 free(portnum); in parse_options()
H A Dns-udpclient.c146 char *portnum; /* port number in string representation */ in main() local
165 portnum = NULL; in main()
200 portnum = strdup(optarg); in main()
234 if (portnum == NULL) { in main()
263 err = getaddrinfo(server_name, portnum, &hints, &res); in main()
H A Dns-tcpserver.c72 char *portnum; /* port number */ member
218 err = getaddrinfo(NULL, info_p->portnum, &hints, &res); in create_listen_socket()
544 server.portnum = NULL; in main()
571 server.portnum = strdup(optarg); in main()
618 if (server.portnum == NULL) { in main()
619 server.portnum = (char *)calloc(6, sizeof(char)); in main()
620 sprintf(server.portnum, "%u", PORTNUMMIN); in main()
H A Dns-tcpclient.c138 char *portnum; /* port number in string representation */ in main() local
157 portnum = NULL; in main()
192 portnum = strdup(optarg); in main()
239 if (portnum == NULL) { in main()
259 err = getaddrinfo(server_name, portnum, &hints, &res); in main()
H A Dns-udpserver.c195 char *portnum = NULL; /* port number */ in main() local
234 portnum = strdup(optarg); in main()
285 err = getaddrinfo(NULL, portnum, &hints, &res); in main()
H A Dns-common.c432 * portnum: port number in character string
438 const char *portnum) in get_maddrinfo()
450 err = getaddrinfo(maddr, portnum, &hints, &res); in get_maddrinfo()
437 get_maddrinfo(sa_family_t family, const char *maddr, const char *portnum) get_maddrinfo() argument
H A Dns-traffic.h235 struct addrinfo *get_maddrinfo(sa_family_t family, const char *maddr, const char *portnum);
/third_party/node/deps/openssl/openssl/crypto/http/
H A Dhttp_lib.c55 unsigned int portnum; in OSSL_parse_url() local
121 if (sscanf(port, "%u", &portnum) <= 0 || portnum > 65535) { in OSSL_parse_url()
165 *pport_num = (int)portnum; in OSSL_parse_url()
197 int ssl = 0, portnum; in OSSL_HTTP_parse_url() local
223 if (!ossl_assert(sscanf(port, "%d", &portnum) == 1)) in OSSL_HTTP_parse_url()
226 *pport_num = portnum; in OSSL_HTTP_parse_url()
/third_party/mesa3d/src/gallium/auxiliary/util/
H A Du_network.c151 u_socket_listen_on_port(uint16_t portnum) in u_socket_listen_on_port() argument
159 sa.sin_port = htons(portnum); in u_socket_listen_on_port()
H A Du_network.h14 int u_socket_listen_on_port(uint16_t portnum);
/third_party/curl/lib/
H A Durlapi.c82 long portnum; /* the numerical version */ member
561 u->portnum = port; in Curl_parse_port()
1406 u->portnum = in->portnum; in curl_url_dup()
1477 if(h && (h->defport == u->portnum) && in curl_url_get()
1533 if(h && (h->defport == u->portnum) && in curl_url_get()
1725 u->portnum = 0; in curl_url_set()
1972 u->portnum = port; in curl_url_set()
H A Dtransfer.c1337 char *portnum; in Curl_follow()
1345 uc = curl_url_get(data->state.uh, CURLUPART_PORT, &portnum, in Curl_follow()
1351 port = atoi(portnum); in Curl_follow()
1352 free(portnum); in Curl_follow()
H A Dcf-socket.c416 int portnum = data->set.localportrange; in bindlocal() local
634 if(--portnum > 0) { in bindlocal()
/third_party/node/deps/openssl/openssl/crypto/bio/
H A Dbio_addr.c845 long portnum = strtol(service, &endp, 10); in BIO_lookup_ex() local
870 && portnum > 0 && portnum < 65536) { in BIO_lookup_ex()
871 se_fallback.s_port = htons((unsigned short)portnum); in BIO_lookup_ex()
/third_party/openssl/crypto/bio/
H A Dbio_addr.c845 long portnum = strtol(service, &endp, 10); in BIO_lookup_ex() local
870 && portnum > 0 && portnum < 65536) { in BIO_lookup_ex()
871 se_fallback.s_port = htons((unsigned short)portnum); in BIO_lookup_ex()
/third_party/node/deps/openssl/openssl/apps/
H A Dcmp.c1850 int portnum, ssl; in setup_client_ctx() local
1881 &portnum, &path, NULL /* q */, NULL /* frag */)) { in setup_client_ctx()
1894 || !OSSL_CMP_CTX_set_serverPort(ctx, portnum)) in setup_client_ctx()
/third_party/openssl/apps/
H A Dcmp.c1850 int portnum, ssl; in setup_client_ctx() local
1881 &portnum, &path, NULL /* q */, NULL /* frag */)) { in setup_client_ctx()
1894 || !OSSL_CMP_CTX_set_serverPort(ctx, portnum)) in setup_client_ctx()

Completed in 23 milliseconds