aboutsummaryrefslogtreecommitdiff
path: root/src/microspdy/session.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/microspdy/session.h')
-rw-r--r--src/microspdy/session.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/microspdy/session.h b/src/microspdy/session.h
index 6af1ad95..e5c22c9b 100644
--- a/src/microspdy/session.h
+++ b/src/microspdy/session.h
@@ -172,6 +172,23 @@ SPDYF_prepare_rst_stream (struct SPDY_Session *session,
172 172
173 173
174/** 174/**
175 * Prepares WINDOW_UPDATE frame to tell the other party that more
176 * data can be sent on the stream. The frame will be put at the head of
177 * the queue.
178 *
179 * @param session SPDY session
180 * @param stream stream to which the changed window will apply
181 * @param delta_window_size how much the window grows
182 * @return SPDY_NO on memory error or
183 * SPDY_YES on success
184 */
185int
186SPDYF_prepare_window_update (struct SPDY_Session *session,
187 struct SPDYF_Stream * stream,
188 int32_t delta_window_size);
189
190
191/**
175 * Handler called by session_write to fill the write buffer according to 192 * Handler called by session_write to fill the write buffer according to
176 * the data frame waiting in the response queue. 193 * the data frame waiting in the response queue.
177 * When response data is given by user callback, the lib does not know 194 * When response data is given by user callback, the lib does not know
@@ -233,6 +250,20 @@ SPDYF_handler_write_rst_stream (struct SPDY_Session *session);
233 250
234 251
235/** 252/**
253 * Handler called by session_write to fill the write buffer based on the
254 * control frame (WINDOW_UPDATE) waiting in the response queue.
255 *
256 * @param session SPDY session
257 * @return SPDY_NO on error (not enough memory). If
258 * the error is unrecoverable the handler changes session's
259 * status.
260 * SPDY_YES on success
261 */
262int
263SPDYF_handler_write_window_update (struct SPDY_Session *session);
264
265
266/**
236 * Carefully ignore the full size of frames which are not yet supported 267 * Carefully ignore the full size of frames which are not yet supported
237 * by the lib. 268 * by the lib.
238 * TODO Ignoring frames containing compressed bodies means that the 269 * TODO Ignoring frames containing compressed bodies means that the