Skip to content
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

Windows AF_UNIX SOCK_DGRAM request #5272

Open
bridgewaterrobbie opened this issue May 26, 2020 · 7 comments
Open

Windows AF_UNIX SOCK_DGRAM request #5272

bridgewaterrobbie opened this issue May 26, 2020 · 7 comments
Labels

Comments

@bridgewaterrobbie
Copy link

Is your feature request related to a problem? Please describe.
Per the blog post announcing AF_UNIX on windows, "Support for the datagram (SOCK_DGRAM) can be considered in future depending on the adoption, feedback and scenarios"

Not sure if it has been asked for elsewhere, but I have a use case where I would find this very helpful

Describe the solution you'd like
The ability to create SOCK_DGRAM AF_UNIX style sockets, thus allowing message boundaries to be preserved

Describe alternatives you've considered
Adding my own basic message boundary headers in a stream socket connection. However, I'd like to be able to plug this into existing libraries that expect datagram sockets without needing to be aware of such a header

Additional context
Note: I am not sure if this is the perfect place to put the request, but https://devblogs.microsoft.com/commandline/af_unix-comes-to-windows/ links to this issue tracker

Thanks!

@therealkenc
Copy link
Collaborator

Note: I am not sure if this is the perfect place to put the request

Good as any (there was some precedent set).

@KristianIvarsson
Copy link

This would be very helpful indeed 👍

@petrutlucian94
Copy link

For what is worth, missing SOCK_DGRAM support is also the reason why the Python maintainers chose not to expose the unix socket API on Windows [1][2]

[1] https://bugs.python.org/issue33408
[2] python/cpython#77589

@joshtriplett
Copy link

I'm interested in this support as well; I have a library requiring UNIX datagram sockets that currently only works on UNIX, and I'd like to make it work on Windows as well.

@ris-work
Copy link

My usecase is this:
UDP-like socket with built-in ACL. No need to perform authentication as it is authenticated and is managed by the OS itself, locally. Probably more secure than UDP, too, and less overheads as we don't need to traverse the networking layer as well.

@garfieldnate
Copy link

I am also interested in this because it is considered a blocker for exposing the AF_UNIX functionality in Python. Being able to use unix-style sockets would allow me to get rid of a lot of OS-specific python code.

@Mr-Anyone
Copy link

Mr-Anyone commented Aug 4, 2024

Also interested in this. Want to build native windows application instead of running it on top of cygwin/msys2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

8 participants