Added spdylay_submit_goaway()

This commit is contained in:
Tatsuhiro Tsujikawa 2012-01-28 19:35:51 +09:00
parent aed626bfa5
commit 31aff01697
2 changed files with 7 additions and 0 deletions

View File

@ -296,6 +296,8 @@ int spdylay_submit_response(spdylay_session *session,
int spdylay_submit_ping(spdylay_session *session); int spdylay_submit_ping(spdylay_session *session);
int spdylay_submit_goaway(spdylay_session *session);
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif

View File

@ -1149,6 +1149,11 @@ int spdylay_submit_ping(spdylay_session *session)
spdylay_session_get_next_unique_id(session)); spdylay_session_get_next_unique_id(session));
} }
int spdylay_submit_goaway(spdylay_session *session)
{
return spdylay_session_add_goaway(session, session->last_recv_stream_id);
}
int spdylay_submit_response(spdylay_session *session, int spdylay_submit_response(spdylay_session *session,
int32_t stream_id, const char **nv, int32_t stream_id, const char **nv,
spdylay_data_provider *data_prd) spdylay_data_provider *data_prd)