Function s2n_tls_sys::s2n_connection_wipe

source ·
pub unsafe extern "C" fn s2n_connection_wipe(
    conn: *mut s2n_connection
) -> c_int
Expand description

Wipes an existing connection and allows it to be reused. Erases all data associated with a connection including pending reads.

@note This function should be called after all I/O is completed and s2n_shutdown has been called. @note Reusing the same connection handle(s) is more performant than repeatedly calling s2n_connection_new() and s2n_connection_free().

@param conn A pointer to the s2n_connection object @returns S2N_SUCCESS on success. S2N_FAILURE on failure