Home
last modified time | relevance | path

Searched refs:myhttp (Results 1 – 2 of 2) sorted by relevance

/netbsd-src/external/bsd/libevent/dist/test/
H A Dregress_http.c98 http_bind(struct evhttp *myhttp, ev_uint16_t *pport, int mask) in http_bind() argument
105 sock = evhttp_bind_socket_with_handle(myhttp, "::1", *pport); in http_bind()
107 sock = evhttp_bind_socket_with_handle(myhttp, "127.0.0.1", *pport); in http_bind()
142 struct evhttp *myhttp; in http_setup_gencb() local
145 myhttp = evhttp_new(base); in http_setup_gencb()
147 if (http_bind(myhttp, pport, mask) < 0) in http_setup_gencb()
152 evhttp_set_bevcb(myhttp, https_bev, NULL); in http_setup_gencb()
156 evhttp_set_gencb(myhttp, cb, cbarg); in http_setup_gencb()
159 evhttp_set_cb(myhttp, "/test", http_basic_cb, myhttp); in http_setup_gencb()
160 evhttp_set_cb(myhttp, "/test nonconformant", http_basic_cb, myhttp); in http_setup_gencb()
[all …]
H A Dregress_rpc.c82 struct evhttp *myhttp; in http_setup() local
86 myhttp = evhttp_new(NULL); in http_setup()
87 if (!myhttp) in http_setup()
91 sock = evhttp_bind_socket_with_handle(myhttp, "127.0.0.1", 0); in http_setup()
98 return (myhttp); in http_setup()