Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Doc/library/socket.rst
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,10 @@ Constants
Added ``TCP_KEEPALIVE``. On MacOS this constant can be used in the same
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
PF_CAN
SOL_CAN_*
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add the ``TCP_CONNECTION_INFO`` option (available on macOS) to :mod:`socket`.
3 changes: 3 additions & 0 deletions Modules/socketmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -8213,6 +8213,9 @@ PyInit__socket(void)
#ifdef TCP_INFO
PyModule_AddIntMacro(m, TCP_INFO);
#endif
#ifdef TCP_CONNECTION_INFO
PyModule_AddIntMacro(m, TCP_CONNECTION_INFO);
#endif
#ifdef TCP_QUICKACK
PyModule_AddIntMacro(m, TCP_QUICKACK);
#endif
Expand Down