Lines Matching refs:port
95 int port; in http_bind() local
111 port = regress_get_socket_port(evhttp_bound_socket_get_fd(sock)); in http_bind()
112 if (port < 0) in http_bind()
114 *pport = (ev_uint16_t) port; in http_bind()
179 http_connect(const char *address, ev_uint16_t port) in http_connect() argument
192 evutil_snprintf(strport, sizeof(strport), "%d", port); in http_connect()
513 ev_uint16_t port = 0, port2 = 0; in http_basic_test_impl() local
515 struct evhttp *http = http_setup(&port, data->base, server_flags); in http_basic_test_impl()
526 fd = http_connect("127.0.0.1", port); in http_basic_test_impl()
691 ev_uint16_t port=0, port2=0; in http_bad_request_test() local
692 struct evhttp *http = http_setup(&port, data->base, 0); in http_bad_request_test()
702 fd = http_connect("127.0.0.1", port); in http_bad_request_test()
813 ev_uint16_t port = 0; in http_delete_test() local
814 struct evhttp *http = http_setup(&port, data->base, 0); in http_delete_test()
820 fd = http_connect("127.0.0.1", port); in http_delete_test()
897 ev_uint16_t port = 0; in http_on_complete_test() local
898 struct evhttp *http = http_setup(&port, data->base, 0); in http_on_complete_test()
903 fd = http_connect("127.0.0.1", port); in http_on_complete_test()
958 ev_uint16_t port = 0; in http_allowed_methods_test() local
959 struct evhttp *http = http_setup(&port, data->base, 0); in http_allowed_methods_test()
964 fd1 = http_connect("127.0.0.1", port); in http_allowed_methods_test()
986 fd2 = http_connect("127.0.0.1", port); in http_allowed_methods_test()
1004 fd3 = http_connect("127.0.0.1", port); in http_allowed_methods_test()
1064 ev_uint16_t port = 0; in http_connection_test_() local
1075 http = http_setup(&port, data->base, mask); in http_connection_test_()
1091 evcon = evhttp_connection_base_bufferevent_new(data->base, dnsbase, bev, address, port); in http_connection_test_()
1096 evcon = evhttp_connection_base_new(data->base, dnsbase, address, port); in http_connection_test_()
1190 ev_uint16_t port = 0; in http_connection_async_test() local
1196 struct evhttp *http = http_setup(&port, data->base, 0); in http_connection_async_test()
1211 evcon = evhttp_connection_base_new(data->base, dns_base, "127.0.0.1", port); in http_connection_async_test()
1284 ev_uint16_t port = 0; in http_autofree_connection_test() local
1287 struct evhttp *http = http_setup(&port, data->base, 0); in http_autofree_connection_test()
1292 evcon = evhttp_connection_base_new(data->base, NULL, "127.0.0.1", port); in http_autofree_connection_test()
1403 http_fill_backlog(struct event_base *base, int port) in http_fill_backlog() argument
1412 evcon[i] = evhttp_connection_base_new(base, NULL, "127.0.0.1", port); in http_fill_backlog()
1454 ev_uint16_t port = 0; in http_cancel_test() local
1469 struct evhttp *http = http_setup(&port, data->base, 0); in http_cancel_test()
1496 port = 0; in http_cancel_test()
1498 inactive_http = http_setup(&port, inactive_base, 0); in http_cancel_test()
1504 evcons = http_fill_backlog(base_to_fill, port); in http_cancel_test()
1509 port); in http_cancel_test()
1553 evcons = http_fill_backlog(base_to_fill, port); in http_cancel_test()
1573 evcons = http_fill_backlog(base_to_fill, port); in http_cancel_test()
1665 ev_uint16_t port = 0; in http_virtual_host_test() local
1672 struct evhttp *http = http_setup(&port, data->base, 0); in http_virtual_host_test()
1694 evcon = evhttp_connection_base_new(data->base, NULL, "127.0.0.1", port); in http_virtual_host_test()
1789 fd = http_connect("127.0.0.1", port); in http_virtual_host_test()
1920 ev_uint16_t port = 0; in http_dispatcher_test() local
1923 struct evhttp *http = http_setup(&port, data->base, 0); in http_dispatcher_test()
1927 evcon = evhttp_connection_base_new(data->base, NULL, "127.0.0.1", port); in http_dispatcher_test()
1969 ev_uint16_t port = 0; in http_post_test() local
1972 struct evhttp *http = http_setup(&port, data->base, 0); in http_post_test()
1976 evcon = evhttp_connection_base_new(data->base, NULL, "127.0.0.1", port); in http_post_test()
2108 ev_uint16_t port = 0; in http_put_test() local
2111 struct evhttp *http = http_setup(&port, data->base, 0); in http_put_test()
2115 evcon = evhttp_connection_base_new(data->base, NULL, "127.0.0.1", port); in http_put_test()
2235 ev_uint16_t port = 0; in http_failure_test() local
2236 struct evhttp *http = http_setup(&port, data->base, 0); in http_failure_test()
2240 fd = http_connect("127.0.0.1", port); in http_failure_test()
2322 ev_uint16_t port = 0; in http_close_detection_() local
2326 struct evhttp *http = http_setup(&port, data->base, 0); in http_close_detection_()
2334 "127.0.0.1", port); in http_close_detection_()
3022 ev_uint16_t port = 0; in http_base_test() local
3028 http = http_setup(&port, base, 0); in http_base_test()
3030 fd = http_connect("127.0.0.1", port); in http_base_test()
3108 ev_uint16_t port = 0; in http_incomplete_test_() local
3110 struct evhttp *http = http_setup(&port, data->base, ssl ? HTTP_BIND_SSL : 0); in http_incomplete_test_()
3117 fd = http_connect("127.0.0.1", port); in http_incomplete_test_()
3324 ev_uint16_t port = 0; in http_chunk_out_test_impl() local
3329 struct evhttp *http = http_setup(&port, data->base, ssl ? HTTP_BIND_SSL : 0); in http_chunk_out_test_impl()
3334 fd = http_connect("127.0.0.1", port); in http_chunk_out_test_impl()
3368 data->base, NULL, bev, "127.0.0.1", port); in http_chunk_out_test_impl()
3402 ev_uint16_t port = 0; in http_stream_out_test_impl() local
3406 struct evhttp *http = http_setup(&port, data->base, ssl ? HTTP_BIND_SSL : 0); in http_stream_out_test_impl()
3413 data->base, NULL, bev, "127.0.0.1", port); in http_stream_out_test_impl()
3478 ev_uint16_t port = 0; in http_stream_in_test_() local
3479 struct evhttp *http = http_setup(&port, data->base, 0); in http_stream_in_test_()
3483 evcon = evhttp_connection_base_new(data->base, NULL,"127.0.0.1", port); in http_stream_in_test_()
3550 ev_uint16_t port = 0; in http_stream_in_cancel_test() local
3551 struct evhttp *http = http_setup(&port, data->base, 0); in http_stream_in_cancel_test()
3553 evcon = evhttp_connection_base_new(data->base, NULL, "127.0.0.1", port); in http_stream_in_cancel_test()
3599 ev_uint16_t port = 0; in http_connection_fail_test_impl() local
3603 struct evhttp *http = http_setup(&port, data->base, ssl ? HTTP_BIND_SSL : 0); in http_connection_fail_test_impl()
3658 ev_uint16_t port; member
3667 hs->http = http_setup(&hs->port, http_make_web_server_base, hs->ssl ? HTTP_BIND_SSL : 0); in http_make_web_server()
3678 struct evhttp *http = http_setup(&hs.port, data->base, ssl ? HTTP_BIND_SSL : 0); in http_simple_test_impl()
3689 data->base, NULL, bev, "127.0.0.1", hs.port); in http_simple_test_impl()
3722 struct evhttp *http = http_setup(&hs.port, data->base, ssl ? HTTP_BIND_SSL : 0); in http_connection_retry_test_basic()
3731 evcon = evhttp_connection_base_bufferevent_new(data->base, dns_base, bev, addr, hs.port); in http_connection_retry_test_basic()
3916 ev_uint16_t port = 0; in http_multi_line_header_test() local
3917 struct evhttp *http = http_setup(&port, data->base, 0); in http_multi_line_header_test()
3924 fd = http_connect("127.0.0.1", port); in http_multi_line_header_test()
3978 ev_uint16_t port = 0; in http_negative_content_length_test() local
3981 struct evhttp *http = http_setup(&port, data->base, 0); in http_negative_content_length_test()
3985 evcon = evhttp_connection_base_new(data->base, NULL, "127.0.0.1", port); in http_negative_content_length_test()
4042 ev_uint16_t port = 0; in http_data_length_constraints_test_impl() local
4049 struct evhttp *http = http_setup(&port, data->base, 0); in http_data_length_constraints_test_impl()
4062 TT_BLATHER(("Creating connection to :%i", port)); in http_data_length_constraints_test_impl()
4063 evcon = evhttp_connection_base_new(data->base, NULL, "127.0.0.1", port); in http_data_length_constraints_test_impl()
4160 ev_uint16_t port = 0; in http_lingering_close_test_impl() local
4166 struct evhttp *http = http_setup(&port, data->base, 0); in http_lingering_close_test_impl()
4174 evcon = evhttp_connection_base_new(data->base, NULL, "127.0.0.1", port); in http_lingering_close_test_impl()
4316 ev_uint16_t port = 0; in http_terminate_chunked_test_impl() local
4319 struct evhttp *http = http_setup(&port, data->base, 0); in http_terminate_chunked_test_impl()
4327 fd = http_connect("127.0.0.1", port); in http_terminate_chunked_test_impl()
4439 ev_uint16_t port = 0; in http_get_addr_test() local
4442 struct evhttp *http = http_setup(&port, data->base, 0); in http_get_addr_test()
4447 evcon = evhttp_connection_base_new(data->base, NULL, "127.0.0.1", port); in http_get_addr_test()
4506 ev_uint16_t port = 0; in http_write_during_read_test_impl() local
4511 struct evhttp *http = http_setup(&port, data->base, ssl ? HTTP_BIND_SSL : 0); in http_write_during_read_test_impl()
4516 fd = http_connect("127.0.0.1", port); in http_write_during_read_test_impl()
4547 ev_uint16_t port = 0; in http_request_own_test() local
4550 struct evhttp *http = http_setup(&port, data->base, 0); in http_request_own_test()
4557 evcon = evhttp_connection_base_new(data->base, NULL, "127.0.0.1", port); in http_request_own_test()
4578 static void http_run_bev_request(struct event_base *base, int port, in http_run_bev_request() argument
4586 fd = http_connect("127.0.0.1", port); in http_run_bev_request()
4610 ev_uint16_t port = 0; in http_request_extra_body_test() local
4613 http_setup_gencb(&port, data->base, 0, http_timeout_cb, NULL); in http_request_extra_body_test()
4623 http_run_bev_request(data->base, port, in http_request_extra_body_test()
4634 http_run_bev_request(data->base, port, in http_request_extra_body_test()