Visitar URL original
bpo-41108: add `IP_PORTRANGE*` constants to the socket module by ngie-eign · Pull Request #21127 · python/cpython · GitHub
The Wayback Machine - https://web.archive.org/web/20250621233158/https://github.com/python/cpython/pull/21127
Skip to content

bpo-41108: add IP_PORTRANGE* constants to the socket module #21127

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ngie-eign
Copy link
Contributor

@ngie-eign ngie-eign commented Jun 24, 2020 •

IP_PORTRANGE* can be used for getting/setting port ranges on a per
socket basis, as opposed to a system wide basis, in conjunction with calls
like socket.getsockopt and socket.setsockopt.

This functionality is available on *BSD and Linux.

Signed-off-by: Enji Cooper yaneurabeya@gmail.com

https://bugs.python.org/issue41108

@ngie-eign ngie-eign changed the title Add IP_PORTRANGE* constants to the socket module bpo-41108: add IP_PORTRANGE* constants to the socket module Jun 24, 2020
@ngie-eign ngie-eign force-pushed the add-more-ip_range-constants-to-socket branch from 299a942 to f73ff38 Compare June 24, 2020 21:12
as opposed to system-level.

.. availability:: BSD, Linux
.. versionchanged:: 3.9
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

3.10

These constants are available for manipulating port ranges on a socket-level
as opposed to system-level.

.. availability:: BSD, Linux
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
.. availability:: BSD, Linux
.. availability:: BSD, Linux.

@@ -0,0 +1 @@
Add ``IP_PORTRANGE*`` constants to the the ``socket`` module on supporting systems.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:mod:`socket`

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, "the" is duplicated.

ngie-eign and others added 2 commits March 10, 2021 11:14
`IP_PORTRANGE*` can be used for getting/setting port ranges on a per socket
basis, as opposed to a system wide basis, in conjunction with calls like
`socket.getsockopt` and `socket.setsockopt`.

This functionality is available on \*BSD and Linux.

Signed-off-by: Enji Cooper <yaneurabeya@gmail.com>
@ngie-eign ngie-eign force-pushed the add-more-ip_range-constants-to-socket branch from f73ff38 to fe85b3e Compare March 10, 2021 19:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants