Debian Codegraph @

doc/functions/gnutls_record_discard_queued

raw
1
2
3
4
5 @deftypefun {size_t} {gnutls_record_discard_queued} (gnutls_session_t @var{session})
6 @var{session}: is a @code{gnutls_session_t} type.
7
8 This function discards all queued to be sent packets in a DTLS session.
9 These are the packets queued after an interrupted @code{gnutls_record_send()} .
10
11 This function can only be used with transports where @code{send()} is
12 an all-or-nothing operation (e.g., UDP). When partial writes are allowed
13 this function will cause session errors.
14
15 @strong{Returns:} The number of bytes discarded.
16
17 @strong{Since:} 3.4.0
18 @end deftypefun