Skip to content

Implementing 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

Open
artiomn opened this issue Jul 23, 2024 · 1 comment
Open

Implementing sendmsg()/recvmsg() methods on Windows #122153

artiomn opened this issue Jul 23, 2024 · 1 comment
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.

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

3 participants