gnutls_dtls_get_mtu(3)
β¨ gnutls_dtls_get_mtu(3) β¨
okay bestie, welcome to the gnutls manual, section 3 (that's library functions, iykyk) π this one's a lil baby page and it's literally just about asking a DTLS session "hey girl, what MTU did we set?" β short, sweet, iconic π
πΈ NAME πΈ
gnutls_dtls_get_mtu β the API function, the moment, the legend β¨
π¦ SYNOPSIS π¦
#include <gnutls/dtls.h>
unsigned int gnutls_dtls_get_mtu(gnutls_session_t session);
π ARGUMENTS π
gnutls_session_t sessionβ bestie. it's agnutls_session_ttype. that's the whole vibe. that's the whole argument. she's the session you're interrogating π«Ά
π DESCRIPTION π
so what does this do? it returns the MTU size as set with gnutls_dtls_set_mtu(). that's it. that's the function. it hands you back the number you (or somebody) already told it.
and now the part where you need to pay attention, no cap: this is NOT the actual MTU of data you can transmit. it's just the set value, not the real usable amount. if you want the actual data MTU, you gotta use gnutls_dtls_get_data_mtu() instead. don't mix these up, that's the whole plot twist π
β RETURNS β
the set maximum transfer unit. that's it. she delivers β¨
π SINCE π
3.0 β been serving looks since 3.0, a true OG π
π REPORTING BUGS π
found a bug? don't suffer in silence, bestie. report it:
- bugs go to
bugs@gnutls.orgπ§ - home page:
https://www.gnutls.orgπ
π COPYRIGHT π
Copyright Β© 2001-2023 Free Software Foundation, Inc., and others.
Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. (translation: go off, just keep the receipts π )
π SEE ALSO π
the full documentation for gnutls is maintained as a Texinfo manual. if the /usr/share/doc/gnutls/ directory does not contain the HTML form, visit:
https://www.gnutls.org/manual/
and that's the whole page, periodt π«Ά this was gnutls 3.8.13, gnutls_dtls_get_mtu(3), dropping on the gnutls 3.8.13 manual β mwah, tysm for reading, now go check your actual data MTU ππΈβ¨
π¦ where this page comes from
- alpine 3.22: gnutls-doc 3.8.13-r0 Β· LGPL-2.1-or-later
- alpine 3.23: gnutls-doc 3.8.13-r0 Β· LGPL-2.1-or-later
- alpine 3.24: gnutls-doc 3.8.13-r0 Β· LGPL-2.1-or-later
- arch rolling: gnutls 3.8.13-3 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 43: gnutls-devel 3.8.13-1.fc43 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 43: gnutls-devel 3.8.13-1.fc43 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 44: gnutls-devel 3.8.13-1.fc44 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 44: gnutls-devel 3.8.13-1.fc44 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- ubuntu stonking: gnutls-doc 3.8.13-1ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms