evhttp_request结构如下: structevhttp_request {#ifdefined(TAILQ_ENTRY)TAILQ_ENTRY(evhttp_request) next;#elsestruct{structevhttp_request *tqe_next;structevhttp_request **tqe_prev; } next;#endif/*the connection object that this request belongs to*/structevhttp_connection *evcon;intflags;/** The re...
evhttp_set_cb(struct evhttp *http, const char *uri, void (*cb)(struct evhttp_request *, void *), void *cbarg) { struct evhttp_cb *http_cb; TAILQ_FOREACH(http_cb, &http->callbacks, next) { if (strcmp(http_cb->what, uri) == 0) return (-1); } //申请内存 if ((http_cb ...