Lines Matching defs:myhttp
80 struct evhttp *myhttp;
84 myhttp = evhttp_new(base);
86 if (evhttp_bind_socket(myhttp, "127.0.0.1", 8080 + i) != -1) {
96 evhttp_set_cb(myhttp, "/test", http_basic_cb, NULL);
97 evhttp_set_cb(myhttp, "/chunked", http_chunked_cb, NULL);
98 evhttp_set_cb(myhttp, "/postit", http_post_cb, NULL);
99 evhttp_set_cb(myhttp, "/largedelay", http_large_delay_cb, NULL);
100 evhttp_set_cb(myhttp, "/badrequest", http_badreq_cb, NULL);
101 evhttp_set_cb(myhttp, "/", http_dispatcher_cb, NULL);
104 return (myhttp);
1117 struct evhttp *myhttp = NULL;
1123 myhttp = evhttp_start("127.0.0.1", 65535 - i);
1124 if (myhttp != NULL) {
1126 evhttp_free(myhttp);