-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
emulate Unix.socketpair on windows #9104
Conversation
Wouldn’t it be better to tackle #8863 and implement this over |
The windows https://devblogs.microsoft.com/commandline/af_unix-comes-to-windows/
|
That's a lot of code that I don't fully understand. (The lack of any comment doesn't help.) Plus, in nearly 30 years of Unix systems programming, I never felt the need for |
also add some comments explaining asynchronous connection setup and evil race prevention.
My use case is testing read/write I/O functions transferring data between bigarrays and It is true that the windows pipe allows bidirectional communication like a I added some comments explaining why the |
I forgot about the bidirectional nature of |
Windows does not provide an implementation of socketpair. This emulates the behaviour of socketpair on Unix domain sockets of SOCK_STREAM type. A stub implementation of socketpair is also provided in case Windows implements it. Related to ocaml#9104.
Thanks for your work on this! #10192 has been merged which does this using Unix sockets on Windows 10 1803+. Although that means there are some supported versions of Windows for which |
No description provided.