1 .\" DO NOT MODIFY THIS FILE! It was generated by gdoc.
2 .TH "gnutls_record_set_max_size" 3 "2.12.6.1" "gnutls" "gnutls"
4 gnutls_record_set_max_size \- API function
6 .B #include <gnutls/gnutls.h>
8 .BI "ssize_t gnutls_record_set_max_size(gnutls_session_t " session ", size_t " size ");"
10 .IP "gnutls_session_t session" 12
11 is a \fBgnutls_session_t\fP structure.
15 This function sets the maximum record packet size in this
16 connection. This property can only be set to clients. The server
17 may choose not to accept the requested size.
19 Acceptable values are 512(=2^9), 1024(=2^10), 2048(=2^11) and
20 4096(=2^12). The requested record size does get in effect
21 immediately only while sending data. The receive part will take
22 effect after a successful handshake.
24 This function uses a TLS extension called 'max record size'. Not
25 all TLS implementations use or even understand this extension.
27 On success, \fBGNUTLS_E_SUCCESS\fP (zero) is returned,
28 otherwise an error code is returned.
30 Report bugs to <bug-gnutls@gnu.org>.
31 GnuTLS home page: http://www.gnu.org/software/gnutls/
32 General help using GNU software: http://www.gnu.org/gethelp/
34 Copyright \(co 2008 Free Software Foundation.
36 Copying and distribution of this file, with or without modification,
37 are permitted in any medium without royalty provided the copyright
38 notice and this notice are preserved.
40 The full documentation for
42 is maintained as a Texinfo manual. If the
46 programs are properly installed at your site, the command
50 should give you access to the complete manual.