mirror of
https://github.com/python/cpython.git
synced 2025-09-09 18:32:22 +00:00
gh-91498: socket: Add TCP_CONNECTION_INFO on macOS (#69256)
Fixes GH-91498
This commit is contained in:
parent
b733708ca3
commit
ad9f817eeb
3 changed files with 8 additions and 0 deletions
|
@ -388,6 +388,10 @@ Constants
|
||||||
Added ``TCP_KEEPALIVE``. On MacOS this constant can be used in the same
|
Added ``TCP_KEEPALIVE``. On MacOS this constant can be used in the same
|
||||||
way that ``TCP_KEEPIDLE`` is used on Linux.
|
way that ``TCP_KEEPIDLE`` is used on Linux.
|
||||||
|
|
||||||
|
.. versionchanged:: 3.11
|
||||||
|
Added ``TCP_CONNECTION_INFO``. On MacOS this constant can be used in the
|
||||||
|
same way that ``TCP_INFO`` is used on Linux and BSD.
|
||||||
|
|
||||||
.. data:: AF_CAN
|
.. data:: AF_CAN
|
||||||
PF_CAN
|
PF_CAN
|
||||||
SOL_CAN_*
|
SOL_CAN_*
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
Add the ``TCP_CONNECTION_INFO`` option (available on macOS) to :mod:`socket`.
|
|
@ -8213,6 +8213,9 @@ PyInit__socket(void)
|
||||||
#ifdef TCP_INFO
|
#ifdef TCP_INFO
|
||||||
PyModule_AddIntMacro(m, TCP_INFO);
|
PyModule_AddIntMacro(m, TCP_INFO);
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef TCP_CONNECTION_INFO
|
||||||
|
PyModule_AddIntMacro(m, TCP_CONNECTION_INFO);
|
||||||
|
#endif
|
||||||
#ifdef TCP_QUICKACK
|
#ifdef TCP_QUICKACK
|
||||||
PyModule_AddIntMacro(m, TCP_QUICKACK);
|
PyModule_AddIntMacro(m, TCP_QUICKACK);
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue