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. π
π COPYRIGHT π
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. π β¨
π¦ where this page comes from
- debian bookworm: manpages-posix-dev 2017a-2 Β· Other
- debian trixie: manpages-posix-dev 2017a-2 Β· Other
- ubuntu jammy: manpages-posix-dev 2017a-2 Β· Other
- ubuntu noble: manpages-posix-dev 2017a-2 Β· Other
- ubuntu resolute: manpages-posix-dev 2017a-2build1 Β· Other
- ubuntu stonking: manpages-posix-dev 2017a-2.1 Β· Other
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms