netinet_tcp.h(7POSIX)

πŸ’– netinet_tcp.h β€” the POSIX girlies' guide πŸ’–

okay so bestie, this is netinet_tcp.h(7POSIX), straight outta the POSIX Programmer's Manual. yes, we're doing standards today, and honestly? iconic of us. 🌸

PROLOG, bestie, read this first: This manual page is part of the POSIX Programmer's Manual. The Linux implementation of this interface may differ (consult the corresponding Linux manual page for details of Linux behavior), or the interface may not be implemented on Linux. 😭 so like, check your local manpage before you come for me, k?

✨ NAME ✨

netinet/tcp.h β€” definitions for the Internet Transmission Control Protocol (TCP)

like yes, it's the header where the TCP-adjacent definitions live. that's the whole vibe. πŸ¦‹


πŸŽ€ SYNOPSIS πŸŽ€

#include <netinet/tcp.h>

one include, no drama, we love a low-maintenance header. πŸ’…


🌈 DESCRIPTION 🌈

okay so here's the tea: the <netinet/tcp.h> header shall define the following symbolic constant for use as a socket option at the IPPROTO_TCP level:

  • TCP_NODELAY β€” Avoid coalescing of small segments. 🫢

and now the part that's giving fine print: the implementation need not allow the value of the option to be set via setsockopt() or retrieved via getsockopt(). so don't come crying to me if you try to flip it and it just… doesn't. 😭 it's allowed to not. that's the rule.

The following sections are informative. πŸ“ (yes, that's a real sentence in the standard, and yes, it means what it says.)


πŸ’… APPLICATION USAGE πŸ’…

None.

like. genuinely none. the standard said "no notes" and meant it. ✨


🧚 RATIONALE 🧚

None.

no reasoning provided, no thoughts, head empty, slay. πŸ’–


πŸ”₯ FUTURE DIRECTIONS πŸ”₯

None.

the future is currently unbothered. πŸ‘‘


⭐ SEE ALSO ⭐

  • <sys_socket.h>
  • The System Interfaces volume of POSIX.1‐2017, getsockopt(), setsockopt()

go read those if you wanna actually do something with sockets. the header is just the vibes; the syscalls are the main characters. 🌟


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 .

ngl if you spot a typo, it's probably from the source-file-to-manpage glow-up, not from the standard itself. report it at that link and we move on. 🫢

and that's the whole page, bestie!! no cap, that's literally everything it had to say. πŸ’œ

this little love letter comes to you from IEEE/The Open Group, 2017 β€” shoutout to them for the source, the version, and the date, all folded into this very sign-off. periodt. πŸ’…βœ¨