Function s2n_tls_sys::s2n_sendv

source ·
pub unsafe extern "C" fn s2n_sendv(
    conn: *mut s2n_connection,
    bufs: *const iovec,
    count: isize,
    blocked: *mut Type
) -> isize
Expand description

Works in the same way as s2n_sendv_with_offset() but with the offs parameter implicitly assumed to be 0. Therefore in the partial write case, the caller would have to make sure that the bufs and count fields are modified in a way that takes the partial writes into account.

@param conn A pointer to the s2n_connection object @param bufs A pointer to a vector of buffers that s2n will write data from. @param count The number of buffers in bufs @param blocked A pointer which will be set to the blocked status if an S2N_ERR_T_BLOCKED error is returned. @returns The number of bytes written on success, which may indicate a partial write. S2N_FAILURE on failure.