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

Comments

Projects
None yet
3 participants
@mattn
Copy link
Member

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

@gopherbot

This comment has been minimized.

Copy link

commented Jul 22, 2018

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

@gopherbot gopherbot closed this in 76c4587 Aug 28, 2018

@gopherbot

This comment has been minimized.

Copy link

commented Aug 31, 2018

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

windows: add support for AF_UNIX sockets
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.