Skip to content

Document some unavailability of sendmsg()/recvmsg() methods on Windows #122153

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

Closed
artiomn opened this issue Jul 23, 2024 · 2 comments
Closed

Document some unavailability of sendmsg()/recvmsg() methods on Windows #122153

artiomn opened this issue Jul 23, 2024 · 2 comments
Labels
extension-modules C modules in the Modules dir OS-windows type-feature A feature request or enhancement

Comments

@artiomn
Copy link

artiomn commented Jul 23, 2024

Feature or enhancement

Proposal:

Methods socket.sendmsg() and socket.recvmsg() are implemented only for Unix-like systems.
But Windows OS has similar API too: https://learn.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-wsasendmsg

Implementing these methods for WinSock2 will improve Python code portability.

Has this already been discussed elsewhere?

This is a minor feature, which does not need previous discussion elsewhere

Links to previous discussion of this feature:

No response

Linked PRs

@artiomn artiomn added the type-feature A feature request or enhancement label Jul 23, 2024
@Eclips4 Eclips4 added OS-windows extension-modules C modules in the Modules dir labels Jul 23, 2024
@James-E-A
Copy link

James-E-A commented Aug 21, 2024

Duplicate of #80398 ?


Also,

Has this already been discussed elsewhere?

This is a minor feature, which does not need previous discussion elsewhere

This actually has been discussed previously -- #50809 (comment)

I don't know if it's feasible to support these new APIs at the socket module level on Windows, but any patches along those lines should also be placed in a new issue rather than being added to this one.

picnixz pushed a commit that referenced this issue Jun 2, 2025
picnixz pushed a commit to picnixz/cpython that referenced this issue Jun 2, 2025
…t.{send,recv}_fds` (pythonGH-134960)

This amends commit e3b6ff1.
(cherry picked from commit 128195e)

Co-authored-by: GalaxySnail <me@glxys.nl>
picnixz pushed a commit to picnixz/cpython that referenced this issue Jun 2, 2025
…t.{send,recv}_fds` (pythonGH-134960)

This amends commit e3b6ff1.
(cherry picked from commit 128195e)

Co-authored-by: GalaxySnail <me@glxys.nl>
picnixz added a commit that referenced this issue Jun 2, 2025
…d,recv}_fds` (GH-134960) (#135018)

This amends commit e3b6ff1.
(cherry picked from commit 128195e)

Co-authored-by: GalaxySnail <me@glxys.nl>
picnixz added a commit that referenced this issue Jun 2, 2025
…d,recv}_fds` (GH-134960) (#135017)

This amends commit e3b6ff1.
(cherry picked from commit 128195e)

Co-authored-by: GalaxySnail <me@glxys.nl>
@picnixz
Copy link
Member

picnixz commented Jun 2, 2025

I should have used the other issue for the docs, but I'll just close this one and keep the other open.

@picnixz picnixz closed this as completed Jun 2, 2025
@picnixz picnixz changed the title Implementing sendmsg()/recvmsg() methods on Windows Document some unavailability of sendmsg()/recvmsg() methods on Windows Jun 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
extension-modules C modules in the Modules dir OS-windows type-feature A feature request or enhancement
Projects
None yet
Development

No branches or pull requests

4 participants