io_uring_prep_send_set_addr(3)

✨ io_uring_prep_send_set_addr β€” set address details for send requests ✨

okay bestie, so this is a lil function from the liburing manual (section 3, iykyk πŸ’…) and it's genuinely so simple you're gonna be obsessed.


🌸 SYNOPSIS 🌸

#include <liburing.h>

void io_uring_prep_send_set_addr(struct io_uring_sqe *sqe,
                                 const struct sockaddr *dest_addr,
                                 __u16 addr_len);

πŸ¦‹ DESCRIPTION πŸ¦‹

so like, io_uring_prep_send_set_addr(3) does exactly one (1) thing and it does it flawlessly πŸ’– β€” it sets the socket destination address for you. The address itself comes from dest_addr, and how long that address is comes from addr_len. that's it. that's the whole vibe.

when do you use it tho?? timing matters πŸ‘‘ β€” you call it once your sqe is already prepped using any of the send(2) io_uring helpers. so like, prep the send first, then sprinkle the address on top. and if you wanna know which helpers count, go read the man pages for io_uring_prep_send(3) or io_uring_prep_send_zc(3). they're right there, they're your girls, go say hi 🫢


πŸ’€ RETURN VALUE πŸ’€

None. nothing. zero. she returns void and she's at peace with that 🌈


πŸŽ€ SEE ALSO πŸŽ€


and that's the whole page, bestie!! this was liburing-2.4, dated January 23, 2023 β€” ty for coming to my ted talk, slay, periodt, go write some rings πŸ’œβœ¨πŸ¦‹

πŸ“¦ where this page comes from