diff options
Diffstat (limited to 'src/microspdy/session.h')
-rw-r--r-- | src/microspdy/session.h | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/src/microspdy/session.h b/src/microspdy/session.h index e5c22c9b..7d8a1fe2 100644 --- a/src/microspdy/session.h +++ b/src/microspdy/session.h | |||
@@ -51,20 +51,22 @@ SPDYF_session_read (struct SPDY_Session *session); | |||
51 | * queue, and to write data to the TLS socket. | 51 | * queue, and to write data to the TLS socket. |
52 | * | 52 | * |
53 | * @param session SPDY_Session for which data will be written. | 53 | * @param session SPDY_Session for which data will be written. |
54 | * @return TODO document after changes | 54 | * @param only_one_frame when true, the function will write at most one |
55 | * SPDY_YES if something was written, the status was changed or | 55 | * SPDY frame to the underlying IO subsystem; |
56 | * response callback was called but did not provide data | 56 | * when false, the function will write up to |
57 | * @return SPDY_YES if something was written, session's status was | 57 | * session->max_num_frames SPDY frames |
58 | * changed or response callback was called but did not provide | 58 | * @return SPDY_YES if the session's internal writing state has changed: |
59 | * something was written and/or session's status was | ||
60 | * changed and/or response callback was called but did not provide | ||
59 | * data. It is possible that error occurred but was handled | 61 | * data. It is possible that error occurred but was handled |
60 | * and the status was therefore changed. | 62 | * and the status was therefore changed. |
61 | * SPDY_NO if nothing happened, e.g. the subsystem wants read/ | 63 | * SPDY_NO if nothing happened. However, it is possible that some |
62 | * write to be called again. However, it is possible that some | ||
63 | * frames were discarded within the call, e.g. frames belonging | 64 | * frames were discarded within the call, e.g. frames belonging |
64 | * to a closed stream. | 65 | * to a closed stream. |
65 | */ | 66 | */ |
66 | int | 67 | int |
67 | SPDYF_session_write (struct SPDY_Session *session, bool only_one_frame); | 68 | SPDYF_session_write (struct SPDY_Session *session, |
69 | bool only_one_frame); | ||
68 | 70 | ||
69 | 71 | ||
70 | /** | 72 | /** |