Home
last modified time | relevance | path

Searched refs:evcon (Results 1 – 13 of 13) sorted by relevance

/netbsd-src/external/bsd/libevent/dist/
H A Dhttp.c189 struct evhttp_connection *evcon);
191 struct evhttp_connection *evcon);
193 struct evhttp_connection *evcon);
194 static void evhttp_request_dispatch(struct evhttp_connection* evcon);
195 static void evhttp_read_firstline(struct evhttp_connection *evcon,
197 static void evhttp_read_header(struct evhttp_connection *evcon,
374 evhttp_write_buffer(struct evhttp_connection *evcon, in evhttp_write_buffer() argument
380 evcon->cb = cb; in evhttp_write_buffer()
381 evcon->cb_arg = arg; in evhttp_write_buffer()
386 bufferevent_setcb(evcon->bufev, in evhttp_write_buffer()
[all …]
H A Devrpc.c309 evrpc_hook_associate_meta_(&rpc_state->hook_meta, req->evcon); in evrpc_request_cb()
434 evrpc_hook_associate_meta_(&rpc_state->hook_meta, req->evcon); in evrpc_request_done()
626 struct evhttp_connection *evcon; in evrpc_pool_set_timeout() local
627 TAILQ_FOREACH(evcon, &pool->connections, next) { in evrpc_pool_set_timeout()
628 evhttp_connection_set_timeout(evcon, timeout_in_secs); in evrpc_pool_set_timeout()
677 ctx->evcon = connection; in evrpc_schedule_request()
725 struct evhttp_connection *connection = ctx->evcon; in evrpc_schedule_request_closure()
843 ctx->evcon = NULL; in evrpc_make_request_ctx()
882 evrpc_hook_associate_meta_(&ctx->hook_meta, ctx->evcon); in evrpc_reply_done()
961 struct evhttp_connection *evcon; in evrpc_pool_schedule() local
[all …]
H A Devrpc-internal.h118 struct evhttp_connection *evcon; member
123 struct evhttp_connection *evcon);
178 struct evhttp_connection *evcon; member
/netbsd-src/external/bsd/libevent/dist/test/
H A Dregress_http.c325 struct evhttp_connection *evcon; in http_basic_cb() local
331 evcon = evhttp_request_get_connection(req); in http_basic_cb()
332 tt_assert(evhttp_connection_get_server(evcon) == arg); in http_basic_cb()
338 sa = evhttp_connection_get_addr(evcon); in http_basic_cb()
1070 struct evhttp_connection *evcon = NULL; in http_connection_test_() local
1096 evcon = evhttp_connection_base_bufferevent_new(data->base, dnsbase, bev, address, port); in http_connection_test_()
1101 evcon = evhttp_connection_base_new(data->base, dnsbase, address, port); in http_connection_test_()
1103 tt_assert(evcon); in http_connection_test_()
1104 evhttp_connection_set_family(evcon, family); in http_connection_test_()
1106 tt_assert(evhttp_connection_get_base(evcon) == data->base); in http_connection_test_()
[all …]
H A Dregress_rpc.c193 struct evhttp_connection *evcon = NULL; in rpc_basic_test() local
198 evcon = evhttp_connection_new("127.0.0.1", port); in rpc_basic_test()
199 tt_assert(evcon); in rpc_basic_test()
213 if (evhttp_make_request(evcon, req, in rpc_basic_test()
223 evhttp_connection_free(evcon); in rpc_basic_test()
262 struct evhttp_connection *evcon = NULL; in rpc_basic_message() local
268 evcon = evhttp_connection_new("127.0.0.1", port); in rpc_basic_message()
269 tt_assert(evcon); in rpc_basic_message()
292 if (evhttp_make_request(evcon, req, in rpc_basic_message()
303 evhttp_connection_free(evcon); in rpc_basic_message()
[all …]
/netbsd-src/external/bsd/libevent/dist/sample/
H A Dhttp-connect.c25 struct evhttp_connection *evcon; member
77 struct evhttp_connection *evcon = base->evcon; in connect_cb() local
83 VERIFY(evcon); in connect_cb()
88 VERIFY(!evhttp_make_request(evcon, req, EVHTTP_REQ_GET, in connect_cb()
100 struct evhttp_connection *evcon; in main() local
114 VERIFY(evcon = evhttp_connection_base_new(base, NULL, in main()
116 connect_base.evcon = evcon; in main()
124 evhttp_make_request(evcon, req, EVHTTP_REQ_CONNECT, hostport); in main()
128 evhttp_connection_free(evcon); in main()
H A Dhttps-client.c232 struct evhttp_connection *evcon = NULL; in main() local
451 evcon = evhttp_connection_base_bufferevent_new(base, NULL, bev, in main()
453 if (evcon == NULL) { in main()
459 evhttp_connection_set_retries(evcon, retries); in main()
462 evhttp_connection_set_timeout(evcon, timeout); in main()
500 r = evhttp_make_request(evcon, req, data_file ? EVHTTP_REQ_POST : EVHTTP_REQ_GET, uri); in main()
512 if (evcon) in main()
513 evhttp_connection_free(evcon); in main()
/netbsd-src/external/bsd/libevent/dist/include/event2/
H A Dhttp.h532 struct bufferevent* evhttp_connection_get_bufferevent(struct evhttp_connection *evcon);
538 struct evhttp *evhttp_connection_get_server(struct evhttp_connection *evcon);
654 void evhttp_connection_set_family(struct evhttp_connection *evcon,
675 int evhttp_connection_set_flags(struct evhttp_connection *evcon,
706 void evhttp_connection_set_max_headers_size(struct evhttp_connection *evcon,
710 void evhttp_connection_set_max_body_size(struct evhttp_connection* evcon,
715 void evhttp_connection_free(struct evhttp_connection *evcon);
723 void evhttp_connection_free_on_completion(struct evhttp_connection *evcon);
727 void evhttp_connection_set_local_address(struct evhttp_connection *evcon,
732 void evhttp_connection_set_local_port(struct evhttp_connection *evcon,
[all …]
H A Dhttp_compat.h84 void evhttp_connection_set_base(struct evhttp_connection *evcon,
H A Drpc.h437 struct evhttp_connection *evcon);
449 struct evhttp_connection *evcon);
H A Dhttp_struct.h69 struct evhttp_connection *evcon; member
/netbsd-src/external/bsd/ntp/dist/sntp/libevent/
H A Devrpc-internal.h119 struct evhttp_connection *evcon; member
124 struct evhttp_connection *evcon);
179 struct evhttp_connection *evcon; member
/netbsd-src/external/bsd/ntp/dist/sntp/libevent/include/event2/
H A Dhttp_struct.h70 struct evhttp_connection *evcon; member