TLSRPT_GET_SOCKET(3)

✨ TLSRPT_GET_SOCKET(3) ✨

okay bestie, welcome to tlsrpt_get_socket from section 3 of the manual β€” that's the library-functions section, iykyk πŸ’…


🌸 NAME 🌸

tlsrpt_get_socket β€” bestie, it hands you the socket file descriptor that's living inside a tlsrpt_connection_t 🫢

πŸ¦‹ SYNOPSIS πŸ¦‹

#include <tlsrpt.h>

int tlsrpt_get_socket(truct tlsrpt_connection_t* con)
not me noticing they wrote truct instead of struct β€” that's literally what the page says so I'm keeping it fr fr, no cap, do not @ me πŸ’€

πŸ’– DESCRIPTION πŸ’–

so. the tlsrpt_get_socket function returns the socket file descriptor used within a tlsrpt_connection_t. that's the whole vibe ✨

and why do you care, you ask? because having that raw fd is lowkey iconic β€” it's useful if you wanna set socket options on it πŸ‘‘

πŸŽ€ RETURN VALUE πŸŽ€

tlsrpt_get_socket returns the socket file descriptor used within a tlsrpt_connection_t. yes bestie, that's the same sentence again, that's just what the function does, periodt.

πŸ”₯ SEE ALSO πŸ”₯

  • man:tlsrpt_strerror[3]
  • man:tlsrpt_error_code_is_internal[3]

πŸ‘‘ AUTHOR πŸ‘‘

Boris Lohner πŸ’œ


okay that's the whole page, mwah πŸ’‹

sign-off time: this lil masterpiece is tlsrpt_get_socket, dated 2026-05-12, and it lives in TLSRPT_GET_SOCKET(3). go forth and set some socket options, main character πŸŒˆβ­πŸ“

πŸ“¦ where this page comes from