Lines Matching refs:evcon
412 struct evhttp_connection *evcon = NULL;
421 evcon = evhttp_connection_new("127.0.0.1", port);
422 if (evcon == NULL) {
438 if (evhttp_make_request(evcon, req, EVHTTP_REQ_GET, "/test") == -1) {
466 if (evhttp_make_request(evcon, req, EVHTTP_REQ_GET, "/test") == -1) {
482 if (evhttp_make_request(evcon, req, EVHTTP_REQ_GET, "/test") == -1) {
494 evhttp_connection_free(evcon);
616 struct evhttp_connection *evcon = NULL;
624 evcon = evhttp_connection_new("127.0.0.1", port);
625 if (evcon == NULL) {
631 evhttp_connection_set_local_address(evcon, "127.0.0.1");
647 if (evhttp_make_request(evcon, req, EVHTTP_REQ_GET, "/?arg=val") == -1) {
654 evhttp_connection_free(evcon);
677 struct evhttp_connection *evcon = NULL;
685 evcon = evhttp_connection_new("127.0.0.1", port);
686 if (evcon == NULL) {
706 if (evhttp_make_request(evcon, req, EVHTTP_REQ_POST, "/postit") == -1) {
713 evhttp_connection_free(evcon);
867 struct evhttp_connection *evcon = arg;
876 if (evhttp_make_request(evcon, req, EVHTTP_REQ_GET, "/test") == -1) {
885 struct evhttp_connection *evcon = arg;
898 event_once(-1, EV_TIMEOUT, close_detect_launch, evcon, &tv);
906 struct evhttp_connection *evcon = NULL;
918 evcon = evhttp_connection_new("127.0.0.1", port);
919 if (evcon == NULL) {
924 delayed_client = evcon;
931 req = evhttp_request_new(close_detect_cb, evcon);
937 if (evhttp_make_request(evcon,
956 evhttp_connection_free(evcon);
1274 struct evhttp_connection *evcon = NULL;
1317 evcon = evhttp_connection_new("127.0.0.1", port);
1318 if (evcon == NULL) {
1332 if (evhttp_make_request(evcon, req,
1346 evhttp_connection_free(evcon);
1414 struct evhttp_connection *evcon = NULL;
1422 evcon = evhttp_connection_new("127.0.0.1", port);
1423 if (evcon == NULL) {
1439 if (evhttp_make_request(evcon, req, EVHTTP_REQ_GET, "/test") == -1) {