Lines Matching refs:myhttp
79 struct evhttp *myhttp;
83 myhttp = evhttp_new(base);
85 if (evhttp_bind_socket(myhttp, "127.0.0.1", 8080 + i) != -1) {
95 evhttp_set_cb(myhttp, "/test", http_basic_cb, NULL);
96 evhttp_set_cb(myhttp, "/chunked", http_chunked_cb, NULL);
97 evhttp_set_cb(myhttp, "/postit", http_post_cb, NULL);
98 evhttp_set_cb(myhttp, "/largedelay", http_large_delay_cb, NULL);
99 evhttp_set_cb(myhttp, "/", http_dispatcher_cb, NULL);
102 return (myhttp);
966 struct evhttp *myhttp = NULL;
972 myhttp = evhttp_start("127.0.0.1", 65535 - i);
973 if (myhttp != NULL) {
975 evhttp_free(myhttp);