Commit 3ed2ab24 authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

Code cleanup

parent a4528930
...@@ -463,6 +463,20 @@ int spdylay_session_send(spdylay_session *session); ...@@ -463,6 +463,20 @@ int spdylay_session_send(spdylay_session *session);
*/ */
int spdylay_session_recv(spdylay_session *session); int spdylay_session_recv(spdylay_session *session);
/*
* Put back previously deferred DATA frame in the stream |stream_id|
* to outbound queue.
*
* This function returns 0 if it succeeds, or one of the following
* negative error codes:
*
* SPDYLAY_ERR_INVALID_ARGUMENT
* The stream does not exist or no deferred data exist.
* SPDYLAY_ERR_NOMEM
* Out of memory.
*/
int spdylay_session_resume_data(spdylay_session *session, int32_t stream_id);
/* /*
* Returns nonzero value if |session| want to receive data from the * Returns nonzero value if |session| want to receive data from the
* remote peer. * remote peer.
...@@ -731,20 +745,6 @@ int spdylay_select_next_protocol(unsigned char **out, unsigned char *outlen, ...@@ -731,20 +745,6 @@ int spdylay_select_next_protocol(unsigned char **out, unsigned char *outlen,
*/ */
uint16_t spdylay_npn_get_version(const unsigned char *proto, size_t protolen); uint16_t spdylay_npn_get_version(const unsigned char *proto, size_t protolen);
/*
* Put back previously deferred DATA frame in the stream |stream_id|
* to outbound queue.
*
* This function returns 0 if it succeeds, or one of the following
* negative error codes:
*
* SPDYLAY_ERR_INVALID_ARGUMENT
* The stream does not exist or no deferred data exist.
* SPDYLAY_ERR_NOMEM
* Out of memory.
*/
int spdylay_session_resume_data(spdylay_session *session, int32_t stream_id);
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment