初步确认future-promise的异步调用机制。目录和cmake待整理。

This commit is contained in:
zhengchao
2018-08-14 19:44:34 +08:00
parent 900dc5c7ba
commit c43a2e86a3
65 changed files with 18580 additions and 90 deletions

View File

@@ -138,7 +138,7 @@ enum tfe_bussiness_action
//@param event: bit AND of EV_HTTP_**
//@param body_frag: NULL for no body data.
typedef tfe_bussiness_action (*http_read_func)(const struct tfe_conn_ctx* ctx, const struct tfe_http_session* session, uint64_t event,struct evbuffer *body_frag, void **pme);
typedef tfe_bussiness_action (*http_read_func)(const struct tfe_stream* stream, const struct tfe_http_session* session, uint64_t event,struct evbuffer *body_frag, void **pme);
struct tfe_http_half *tfe_http_request_create(int major_version,int method, const char* uri, const char* host);
struct tfe_http_half *tfe_http_response_create(int major_version,int resp_code, struct evbuff* body);