tcp.h: add TCP_CORK definition
Build Documentation / build-html (push) Has been cancelled

TCP_CORK and TCP_NODELAY behave almost exactly the opposite,
so first provide simple support for TCP_CORK.

Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
This commit is contained in:
zhanghongyu
2025-01-14 15:19:00 +08:00
committed by Xiang Xiao
parent 60dc94b909
commit 9869181761
3 changed files with 8 additions and 3 deletions
+1
View File
@@ -57,5 +57,6 @@
#define TCP_KEEPCNT (__SO_PROTOCOL + 3) /* Number of keepalives before death
* Argument: max retry count */
#define TCP_MAXSEG (__SO_PROTOCOL + 4) /* The maximum segment size */
#define TCP_CORK (__SO_PROTOCOL + 5) /* Coalescing of small segments */
#endif /* __INCLUDE_NETINET_TCP_H */