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

net: Support AF_UNIX on Windows10 or later. #26072

Closed
mattn opened this issue Jun 27, 2018 · 2 comments
Closed

net: Support AF_UNIX on Windows10 or later. #26072

mattn opened this issue Jun 27, 2018 · 2 comments
Labels
FrozenDueToAge NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. OS-Windows
Milestone

Comments

@mattn
Copy link
Member

mattn commented Jun 27, 2018

This will be long-term issue. Windows 10 supports AF_UNIX. This may be provided by third parties, but I believe that we should support AF_UNIX in standard libary. This will be useful to communicate external process via socket file on Windows.

This is small example that I could build and worked on Windows. https://gist.github.com/mattn/6b6bd66ff15e95ab0b241a578023e1ed

@ianlancetaylor ianlancetaylor added OS-Windows NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. labels Jun 27, 2018
@ianlancetaylor ianlancetaylor added this to the Unplanned milestone Jun 27, 2018
@gopherbot
Copy link

Change https://golang.org/cl/125456 mentions this issue: syscall: implement Unix Socket for Windows

@gopherbot
Copy link

Change https://golang.org/cl/132555 mentions this issue: windows: add support for AF_UNIX sockets

gopherbot pushed a commit to golang/sys that referenced this issue Aug 31, 2018
CL 125456 added the implementation of AF_UNIX to the syscall package.
Add the same implementation to golang.org/x/sys/windows as well.

This works only on Windows 10.

https://blogs.msdn.microsoft.com/commandline/2017/12/19/af_unix-comes-to-windows/

Updates golang/go#26072

Change-Id: Ibd4a17342ed4f9f4f2b16b82c7b02834e681b7b4
Reviewed-on: https://go-review.googlesource.com/132555
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Yasuhiro MATSUMOTO <mattn.jp@gmail.com>
Reviewed-by: Alex Brainman <alex.brainman@gmail.com>
@golang golang locked and limited conversation to collaborators Aug 31, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. OS-Windows
Projects
None yet
Development

No branches or pull requests

3 participants