Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit314f4b9

Browse files
authored
gh-132991: Add socket.IP_FREEBIND constant (GH-132998)
1 parentbd2e5f0 commit314f4b9

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

‎Doc/library/socket.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -476,8 +476,8 @@ Constants
476476
network interface instead of its name.
477477

478478
..versionchanged::3.14
479-
Added missing ``IP_RECVERR``, ``IPV6_RECVERR``, ``IP_RECVTTL``, and
480-
``IP_RECVORIGDSTADDR`` on Linux.
479+
Added missing ``IP_FREEBIND``, ``IP_RECVERR``, ``IPV6_RECVERR``,
480+
``IP_RECVTTL``, and ``IP_RECVORIGDSTADDR`` on Linux.
481481

482482
..versionchanged::3.14
483483
Added support for ``TCP_QUICKACK`` on Windows platforms when available.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add:data:`!socket.IP_FREEBIND` constant on Linux 2.4 and later.

‎Modules/socketmodule.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8829,6 +8829,9 @@ socket_exec(PyObject *m)
88298829
#ifdefIP_MAX_MEMBERSHIPS
88308830
ADD_INT_MACRO(m,IP_MAX_MEMBERSHIPS);
88318831
#endif
8832+
#ifdefIP_FREEBIND
8833+
ADD_INT_MACRO(m,IP_FREEBIND);
8834+
#endif
88328835
#ifdefIP_TRANSPARENT
88338836
ADD_INT_MACRO(m,IP_TRANSPARENT);
88348837
#endif

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp