1gnutls_record_set_state(3) gnutls gnutls_record_set_state(3)
2
3
4
6 gnutls_record_set_state - API function
7
9 #include <gnutls/gnutls.h>
10
11 int gnutls_record_set_state(gnutls_session_t session, unsigned read,
12 const unsigned char [8] seq_number);
13
15 gnutls_session_t session
16 is a gnutls_session_t type
17
18 unsigned read
19 if non-zero the read parameters are returned, otherwise the
20 write
21
22 const unsigned char [8] seq_number
23 A 64-bit sequence number
24
26 This function will set the sequence number in the current record state.
27 This function is useful if sending and receiving are offloaded from
28 gnutls. That is, if gnutls_record_get_state() was used.
29
31 GNUTLS_E_SUCCESS on success, or an error code.
32
33 Since 3.4.0
34
36 Report bugs to <bugs@gnutls.org>.
37 Home page: http://www.gnutls.org
38
39
41 Copyright © 2001-2018 Free Software Foundation, Inc., and others.
42 Copying and distribution of this file, with or without modification,
43 are permitted in any medium without royalty provided the copyright
44 notice and this notice are preserved.
45
47 The full documentation for gnutls is maintained as a Texinfo manual.
48 If the /usr/share/doc/gnutls/ directory does not contain the HTML form
49 visit
50
51 http://www.gnutls.org/manual/
52
53gnutls 3.6.5 gnutls_record_set_state(3)