GETADDRINFO(3POSIX)

πŸ’– GETADDRINFO β€” POSIX Programmer's Manual πŸ’–

okay bestie, welcome to getaddrinfo(3POSIX), straight out of the POSIX Programmer's Manual ✨ this one's a lil shortie but she's important, iykyk.


🫢 PROLOG 🫢

okay so real talk before we even start: this page is part of the POSIX Programmer's Manual. the Linux implementation of this interface may differ (so go check the corresponding Linux manual page for the deets on Linux behavior), or β€” plot twist 😭 β€” the interface may not even be implemented on Linux at all.


✨ NAME ✨

getaddrinfo β€” get address information

like. she literally gets you address info. main character energy fr fr πŸ‘‘


🌸 SYNOPSIS 🌸

#include <sys/socket.h>
#include <netdb.h>

int getaddrinfo(const char *restrict nodename,
    const char *restrict servname,
    const struct addrinfo *restrict hints,
    struct addrinfo **restrict res);

look at those restrict qualifiers. so demure. so mindful πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

bestie, this page is gonna keep it short and sweet: refer to freeaddrinfo(). that's it. that's the description. the lore lives over there πŸ“šβœ¨


okay so legal o'clock, no skipping, this part is required and we respect it 🫑

Portions of this text are reprinted and reproduced in electronic form from IEEE Std 1003.1-2017, Standard for Information Technology -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 7, 2018 Edition, Copyright (C) 2018 by the Institute of Electrical and Electronics Engineers, Inc and The Open Group. In the event of any discrepancy between this version and the original IEEE and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. The original Standard can be obtained online at http://www.opengroup.org/unix/online.html .

Any typographical or formatting errors that appear in this page are most likely to have been introduced during the conversion of the source files to man page format. To report such errors, see https://www.kernel.org/doc/man-pages/reporting_bugs.html .

πŸ’€ friendly reminder that if you spot a typo, it's almost definitely a conversion artifact, not a vibe. report it at that second link, don't @ me.

and that's the whole page babes 🌈 this edition was served up by IEEE/The Open Group, 2017 β€” stay iconic, go read freeaddrinfo() next, mwah πŸ’‹πŸ’œ