增加HTTP-Kill/TCP-Kill功能

This commit is contained in:
luqiuwen
2018-12-09 21:20:24 +06:00
parent 5ebceac0c0
commit fd09f249b6
8 changed files with 52 additions and 0 deletions

View File

@@ -236,6 +236,7 @@ struct tfe_http_session_ops
void (* ops_drop)(struct tfe_http_session * session);
void (* ops_suspend)(struct tfe_http_session * session);
void (* ops_resume)(struct tfe_http_session * session);
void (* ops_kill)(struct tfe_http_session * session);
void (* ops_request_set)(struct tfe_http_session * session, struct tfe_http_half * req);
void (* ops_response_set)(struct tfe_http_session * session, struct tfe_http_half * resp);
@@ -397,6 +398,11 @@ static inline void tfe_http_session_drop(struct tfe_http_session * session)
return session->ops->ops_drop(session);
}
static inline void tfe_http_session_kill(struct tfe_http_session * session)
{
return session->ops->ops_kill(session);
}
static inline void tfe_http_session_suspend(struct tfe_http_session * session)
{
return session->ops->ops_suspend(session);