mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
expose TCP_FASTOPEN and MSG_FASTOPEN
This commit is contained in:
parent
b92c40ef9b
commit
57b667261c
2 changed files with 9 additions and 1 deletions
|
@ -5971,6 +5971,9 @@ PyInit__socket(void)
|
|||
#ifdef MSG_MCAST
|
||||
PyModule_AddIntConstant(m, "MSG_MCAST", MSG_MCAST);
|
||||
#endif
|
||||
#ifdef MSG_FASTOPEN
|
||||
PyModule_AddIntConstant(m, "MSG_FASTOPEN", MSG_FASTOPEN);
|
||||
#endif
|
||||
|
||||
/* Protocol level and numbers, usable for [gs]etsockopt */
|
||||
#ifdef SOL_SOCKET
|
||||
|
@ -6401,7 +6404,9 @@ PyInit__socket(void)
|
|||
#ifdef TCP_QUICKACK
|
||||
PyModule_AddIntConstant(m, "TCP_QUICKACK", TCP_QUICKACK);
|
||||
#endif
|
||||
|
||||
#ifdef TCP_FASTOPEN
|
||||
PyModule_AddIntConstant(m, "TCP_FASTOPEN", TCP_FASTOPEN);
|
||||
#endif
|
||||
|
||||
/* IPX options */
|
||||
#ifdef IPX_TYPE
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue