gnutls_dtls_get_data_mtu(3)

πŸ’– gnutls_dtls_get_data_mtu πŸ’–

okay bestie, welcome to the gnutls manual, section 3 β€” we're deep in the library call girlies today. this one lives in the gnutls docs and it's called gnutls_dtls_get_data_mtu, and yes she's an API function, no cap. πŸŽ€


✨ NAME ✨

gnutls_dtls_get_data_mtu β€” API function. that's it, that's the name, she's serving exactly what it says on the tin. πŸ’…


🌸 SYNOPSIS 🌸

#include <gnutls/dtls.h>

unsigned int gnutls_dtls_get_data_mtu(gnutls_session_t session);

literally the whole vibe. include the header, call the function, get your number back. πŸ¦‹


πŸŽ€ ARGUMENTS πŸŽ€

  • gnutls_session_t session β€” bestie this is a gnutls_session_t type. that's the whole personality. your session, your girl, your context. she knows things. 🫢

πŸ’œ DESCRIPTION πŸ’œ

okay so here's the tea. this function returns the actual maximum transfer unit for application data. and "actual" is doing WORK in that sentence, because it's not just handing you whatever MTU you set β€” no ma'am. it takes the MTU you configured with gnutls_dtls_set_mtu() and it subtracts the DTLS headers from it. ✨

so what you're getting back is the real, usable, app-data-only budget. the header tax has already been paid. it's giving honest numbers only. πŸ’…


⭐ RETURNS ⭐

the maximum allowed transfer unit. that's the whole return value, she's concise and she's correct. πŸ”₯


🌈 SINCE 🌈

3.0 β€” she's been here since 3.0, an absolute icon, a veteran, main character energy since day one. πŸ‘‘


πŸ™ˆ REPORTING BUGS πŸ™ˆ

found something cursed? not me manifesting bugs, but if it happens:

fr fr, tell them. they want to know. πŸ“


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. slay, and also legally binding. πŸ’–


🧚 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/

go read the big one, bestie, it's all there. 🌸


and that's the whole page, mwah πŸ’‹ β€” this was gnutls_dtls_get_data_mtu(3) from the gnutls 3.8.13 manual, dated with all the love of a Free Software Foundation copyright spanning 2001-2023. take care of her, she's an API function. πŸŽ€βœ¨

πŸ“¦ where this page comes from