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

Support Unix Domain Socket #4

Open
DrSensor opened this issue Apr 29, 2018 · 4 comments
Open

Support Unix Domain Socket #4

DrSensor opened this issue Apr 29, 2018 · 4 comments
Assignees

Comments

@DrSensor
Copy link

Is this library support Unix Domain Socket?
https://blogs.msdn.microsoft.com/commandline/2018/02/07/windowswsl-interop-with-af_unix/

There is a possibility that in the future language server protocol can use/prefer Unix Socket because Win 10 now support that.

@CXuesong CXuesong self-assigned this Apr 30, 2018
@CXuesong
Copy link
Owner

Not yet. But I will look into this when I'm available!

@CXuesong
Copy link
Owner

CXuesong commented May 2, 2018

Though it seems that the NamedPipe*Stream on Linux is actually implemented with Unix domain sockets (See dotnet/corefx#6833), from dotnet/corefx#27631, I assume there will be something like UnixDomainSocketEndPoint in .NET Core 2.1, and this is what you are talking about.

Well, then, first of all I need to install VS 15.7 Preview 1 to try out this new socket endpoint .NET Core 2.1 🌚 This may take a moment.

@CXuesong
Copy link
Owner

CXuesong commented May 2, 2018

Okay so now I've played with sockets for a while (and for the first time in my life 😂). See CXuesong/UnixDomainSocketTest.

It seems that you can wrap the underlying sockets with NetworkStream (See my test code here). If this is the case, then basically you can use CXuesong.JsonRpc.Streams to work on the stream layer.

I will revisit this issue to see if I can actually work out a demo LSP on Unix sockets when I'm available next time. Until then, feel free to try this out on yourself!

@CXuesong
Copy link
Owner

CXuesong commented May 4, 2018

Blocker reached: There is currently no Unix Domain Socket support in nodejs on Windows… Oops.

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

No branches or pull requests

2 participants