@@ -2008,7 +2008,7 @@ S2N_API extern int s2n_negotiate(struct s2n_connection *conn, s2n_blocked_status
2008
2008
* @param buf A pointer to a buffer that s2n will write data from
2009
2009
* @param size The size of buf
2010
2010
* @param blocked A pointer which will be set to the blocked status if an `S2N_ERR_T_BLOCKED` error is returned.
2011
- * @returns The number of bytes written, and may indicate a partial write
2011
+ * @returns The number of bytes written on success, which may indicate a partial write. S2N_FAILURE on failure.
2012
2012
*/
2013
2013
S2N_API extern ssize_t s2n_send (struct s2n_connection * conn , const void * buf , ssize_t size , s2n_blocked_status * blocked );
2014
2014
@@ -2021,7 +2021,7 @@ S2N_API extern ssize_t s2n_send(struct s2n_connection *conn, const void *buf, ss
2021
2021
* @param bufs A pointer to a vector of buffers that s2n will write data from.
2022
2022
* @param count The number of buffers in `bufs`
2023
2023
* @param blocked A pointer which will be set to the blocked status if an `S2N_ERR_T_BLOCKED` error is returned.
2024
- * @returns The number of bytes written, and may indicate a partial write.
2024
+ * @returns The number of bytes written on success, which may indicate a partial write. S2N_FAILURE on failure.
2025
2025
*/
2026
2026
S2N_API extern ssize_t s2n_sendv (struct s2n_connection * conn , const struct iovec * bufs , ssize_t count , s2n_blocked_status * blocked );
2027
2027
@@ -2040,7 +2040,7 @@ S2N_API extern ssize_t s2n_sendv(struct s2n_connection *conn, const struct iovec
2040
2040
* @param count The number of buffers in `bufs`
2041
2041
* @param offs The write cursor offset. This should be updated as data is written. See the example code.
2042
2042
* @param blocked A pointer which will be set to the blocked status if an `S2N_ERR_T_BLOCKED` error is returned.
2043
- * @returns The number of bytes written, and may indicate a partial write.
2043
+ * @returns The number of bytes written on success, which may indicate a partial write. S2N_FAILURE on failure.
2044
2044
*/
2045
2045
S2N_API extern ssize_t s2n_sendv_with_offset (struct s2n_connection * conn , const struct iovec * bufs , ssize_t count , ssize_t offs , s2n_blocked_status * blocked );
2046
2046
@@ -2057,7 +2057,7 @@ S2N_API extern ssize_t s2n_sendv_with_offset(struct s2n_connection *conn, const
2057
2057
* @param buf A pointer to a buffer that s2n will place read data into.
2058
2058
* @param size Size of `buf`
2059
2059
* @param blocked A pointer which will be set to the blocked status if an `S2N_ERR_T_BLOCKED` error is returned.
2060
- * @returns number of bytes read. 0 if the connection was shutdown by peer.
2060
+ * @returns The number of bytes read on success . 0 if the connection was shutdown by the peer. S2N_FAILURE on failure .
2061
2061
*/
2062
2062
S2N_API extern ssize_t s2n_recv (struct s2n_connection * conn , void * buf , ssize_t size , s2n_blocked_status * blocked );
2063
2063
0 commit comments