Renamed spdylay_submit_cancel() as spdylay_submit_rst_stream().

This commit is contained in:
Tatsuhiro Tsujikawa 2012-02-15 23:15:48 +09:00
parent c1aefb3ba5
commit e7e2c69526
2 changed files with 5 additions and 5 deletions

View File

@ -455,11 +455,11 @@ int spdylay_submit_data(spdylay_session *session, int32_t stream_id,
uint8_t flags, spdylay_data_provider *data_prd); uint8_t flags, spdylay_data_provider *data_prd);
/* /*
* Submits RST_STREAM frame to cancel/reset stream |stream_id| with * Submits RST_STREAM frame to cancel/reject stream |stream_id| with
* status code |status_code|. This function returns 0 if it succeeds, * status code |status_code|. This function returns 0 if it succeeds,
* or negative error code. * or negative error code.
*/ */
int spdylay_submit_cancel(spdylay_session *session, int32_t stream_id, int spdylay_submit_rst_stream(spdylay_session *session, int32_t stream_id,
uint32_t status_code); uint32_t status_code);
/* /*

View File

@ -33,7 +33,7 @@ int spdylay_submit_ping(spdylay_session *session)
spdylay_session_get_next_unique_id(session)); spdylay_session_get_next_unique_id(session));
} }
int spdylay_submit_cancel(spdylay_session *session, int32_t stream_id, int spdylay_submit_rst_stream(spdylay_session *session, int32_t stream_id,
uint32_t status_code) uint32_t status_code)
{ {
return spdylay_session_add_rst_stream(session, stream_id, status_code); return spdylay_session_add_rst_stream(session, stream_id, status_code);