Home
last modified time | relevance | path

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

/libevent-2.1.12/test/
H A Dregress_testutils.c94 ev_uint16_t *portnum, in regress_get_dnsserver() argument
112 my_addr.sin_port = htons(*portnum); in regress_get_dnsserver()
119 if (!*portnum) in regress_get_dnsserver()
120 *portnum = regress_get_socket_port(sock); in regress_get_dnsserver()
H A Dregress_dns.c545 ev_uint16_t portnum = 0; in dns_search_test_impl() local
556 tt_assert(regress_dnsserver(base, &portnum, table)); in dns_search_test_impl()
658 ev_uint16_t portnum = 0; in dns_search_cancel_test() local
662 port = regress_get_dnsserver(base, &portnum, NULL, in dns_search_cancel_test()
734 ev_uint16_t portnum = 0; in dns_retry_test_impl() local
739 port = regress_get_dnsserver(base, &portnum, NULL, in dns_retry_test_impl()
908 ev_uint16_t portnum = 0; in dns_inflight_test_impl() local
972 ev_uint16_t portnum = 0; in dns_disable_when_inactive_no_ns_test() local
2126 ev_uint16_t portnum = 0; in dns_client_fail_requests_test() local
2174 ev_uint16_t portnum = 0; in dns_client_fail_requests_getaddrinfo_test() local
[all …]
H A Dregress_testutils.h42 ev_uint16_t *portnum,
H A Dregress_http.c1194 ev_uint16_t portnum = 0; in http_connection_async_test() local
1199 tt_assert(regress_dnsserver(data->base, &portnum, search_table)); in http_connection_async_test()
1206 evutil_snprintf(address, sizeof(address), "127.0.0.1:%d", portnum); in http_connection_async_test()
1460 ev_uint16_t portnum = 0; in http_cancel_test() local
1474 tt_assert(regress_dnsserver(data->base, &portnum, search_table)); in http_cancel_test()
1481 ++portnum; in http_cancel_test()
1483 evutil_snprintf(address, sizeof(address), "127.0.0.1:%d", portnum); in http_cancel_test()
3847 ev_uint16_t portnum = 0; in http_connection_retry_conn_address_test_impl() local
3851 tt_assert(regress_dnsserver(data->base, &portnum, search_table)); in http_connection_retry_conn_address_test_impl()
3857 evutil_snprintf(address, sizeof(address), "127.0.0.1:%d", portnum); in http_connection_retry_conn_address_test_impl()
[all …]
/libevent-2.1.12/
H A Devutil.c994 struct evutil_addrinfo *hints, struct evutil_addrinfo **res, int *portnum) in evutil_getaddrinfo_common_() argument
1108 *portnum = port; in evutil_getaddrinfo_common_()
1390 int portnum=-1, need_np_hack, err; in evutil_getaddrinfo() local
1442 && ((portnum=parse_numeric_servname(servname)) >= 0); in evutil_getaddrinfo()
1446 NULL,servname,&hints, res, &portnum); in evutil_getaddrinfo()
1468 apply_numeric_port_hack(portnum, res); in evutil_getaddrinfo()
H A Dutil-internal.h424 struct evutil_addrinfo *hints, struct evutil_addrinfo **res, int *portnum);
H A Dhttp.c4567 int portnum = 0; in parse_port() local
4571 portnum = (portnum * 10) + (*s - '0'); in parse_port()
4572 if (portnum < 0) in parse_port()
4574 if (portnum > 65535) in parse_port()
4578 return portnum; in parse_port()