增加HTTP-Kill/TCP-Kill功能
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user