Blame doc/functions/gnutls_record_discard_queued

Packit aea12f
Packit aea12f
Packit aea12f
Packit aea12f
Packit aea12f
@deftypefun {size_t} {gnutls_record_discard_queued} (gnutls_session_t @var{session})
Packit aea12f
@var{session}: is a @code{gnutls_session_t}  type.
Packit aea12f
Packit Service 991b93
This function discards all queued to be sent packets in a DTLS session.
Packit aea12f
These are the packets queued after an interrupted @code{gnutls_record_send()} .
Packit aea12f
Packit Service 991b93
This function can only be used with transports where @code{send()}  is
Packit Service 991b93
an all-or-nothing operation (e.g., UDP). When partial writes are allowed
Packit Service 991b93
this function will cause session errors.
Packit Service 991b93
Packit aea12f
@strong{Returns:} The number of bytes discarded.
Packit aea12f
Packit aea12f
@strong{Since:} 3.4.0
Packit aea12f
@end deftypefun