Linked by Thom Holwerda on Wed 20th Dec 2017 17:34 UTC

Support for the unix socket has existed both in BSD and Linux for the longest time, but, not on Windows. On Windows, there were some alternatives for local IPC, such as named pipes. But, calling conventions are different between the named pipes and sockets, making writing low-maintenance cross-platform applications difficult. For example, one such place where these two constructs differ (other than the API) is terminating the connection. BSD Socket API provides a bidirectional close semantics using 'shutdown'. There is no direct equivalent of that in named pipes. Such differences make it difficult to port unix socket applications from Linux to Windows and vice versa; up until now!

Build 17063 brings native support for the unix socket to Windows. Starting this build, two Win32 processes can use the AF_UNIX address family over Winsock API (which is very similar to the BSD socket API) to communicate with each other. Currently, the support only exists for the stream (SOCK_STREAM) socket type, which is a connection-oriented protocol for one-to-one communication. Support for the datagram (SOCK_DGRAM) can be considered in future depending on the adoption, feedback and scenarios.

Another step to make Windows friendlier to UNIX/Linux users and developers.

Permalink for comment 652269
To read all comments associated with this story, please click here.
RE: Target Audience
by galvanash on Wed 20th Dec 2017 22:26 UTC in reply to "Target Audience"
Member since:

I do wonder about the effectiveness of microsoft's strategy of supporting linux userspace on windows to regain the server market lost to linux. I know that I have zero interest in replacing linux with microsoft products. Anyone working for a company showing interest in this?

Personally think it is more about not losing any more ground than necessary... I don't see this kind of stuff helping them regain much lost ground to be honest - Linux will always be better at running Linux Apps.

It does, however, keep you from leaving Windows in some scenarios. I don't think it does much to attract you to adopting Windows though.

My personal theory though is this isn't even really about servers, or even about Linux, its about web developers. The Linux Subsystem on Windows 10 is by far the most meaningful thing they have done in the last 5 years to attract web developers currently on OSX (which is an outstanding web development platform for Linux servers, arguably better than Linux itself) to switch to Windows, because for most OSX users Windows had become basically non-viable for them - everything from Git to Node to Python to Ruby was an uphill struggle on that platform. Now it is at least becoming viable again...

Edited 2017-12-20 22:29 UTC

Reply Parent Score: 3