Blame doc/functions/gnutls_record_uncork

Packit aea12f
Packit aea12f
Packit aea12f
Packit aea12f
Packit aea12f
@deftypefun {int} {gnutls_record_uncork} (gnutls_session_t @var{session}, unsigned int @var{flags})
Packit aea12f
@var{session}: is a @code{gnutls_session_t}  type.
Packit aea12f
Packit aea12f
@var{flags}: Could be zero or @code{GNUTLS_RECORD_WAIT} 
Packit aea12f
Packit aea12f
This resets the effect of @code{gnutls_record_cork()} , and flushes any pending
Packit aea12f
data. If the @code{GNUTLS_RECORD_WAIT}  flag is specified then this
Packit aea12f
function will block until the data is sent or a fatal error
Packit aea12f
occurs (i.e., the function will retry on @code{GNUTLS_E_AGAIN}  and
Packit aea12f
@code{GNUTLS_E_INTERRUPTED} ).
Packit aea12f
Packit aea12f
If the flag @code{GNUTLS_RECORD_WAIT}  is not specified and the function
Packit aea12f
is interrupted then the @code{GNUTLS_E_AGAIN}  or @code{GNUTLS_E_INTERRUPTED} 
Packit aea12f
errors will be returned. To obtain the data left in the corked
Packit aea12f
buffer use @code{gnutls_record_check_corked()} .
Packit aea12f
Packit Service 991b93
@strong{Returns:} On success the number of transmitted data is returned, or
Packit Service 991b93
otherwise a negative error code.
Packit aea12f
Packit aea12f
@strong{Since:} 3.1.9
Packit aea12f
@end deftypefun