| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
@deftypefun {int} {gnutls_record_uncork} (gnutls_session_t @var{session}, unsigned int @var{flags}) |
| 6 |
@var{session}: is a @code{gnutls_session_t} type. |
| 7 |
|
| 8 |
@var{flags}: Could be zero or @code{GNUTLS_RECORD_WAIT} |
| 9 |
|
| 10 |
This resets the effect of @code{gnutls_record_cork()} , and flushes any pending |
| 11 |
data. If the @code{GNUTLS_RECORD_WAIT} flag is specified then this |
| 12 |
function will block until the data is sent or a fatal error |
| 13 |
occurs (i.e., the function will retry on @code{GNUTLS_E_AGAIN} and |
| 14 |
@code{GNUTLS_E_INTERRUPTED} ). |
| 15 |
|
| 16 |
If the flag @code{GNUTLS_RECORD_WAIT} is not specified and the function |
| 17 |
is interrupted then the @code{GNUTLS_E_AGAIN} or @code{GNUTLS_E_INTERRUPTED} |
| 18 |
errors will be returned. To obtain the data left in the corked |
| 19 |
buffer use @code{gnutls_record_check_corked()} . |
| 20 |
|
| 21 |
@strong{Returns:} On success the number of transmitted data is returned, or |
| 22 |
otherwise a negative error code. |
| 23 |
|
| 24 |
@strong{Since:} 3.1.9 |
| 25 |
@end deftypefun |