Function bearssl::br_sslio_flush
[−]
[src]
pub unsafe extern "C" fn br_sslio_flush(cc: *mut br_sslio_context) -> c_int
\brief Flush pending data.
This call makes sure that any buffered application data in the
provided context (including the wrapped SSL engine) has been sent
to the transport medium (i.e. accepted by the low_write()
callback
method). If there is no such pending data, then this function does
nothing (and returns a success, i.e. 0).
If the underlying transport medium has its own buffers, then it is up to the caller to ensure the corresponding flushing.
Returned value is 0 on success, -1 on error.
\param cc SSL wrapper context. \return 0 on success, or -1 on error.