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 a gnutls_session_t type. 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:


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