Windows has recently (Windows 10 Insider build 17063) implemented support for AF_UNIX, so you can use it in future windows builds.
However not all of it is implemented, the below features don't work.
- AF_UNIX datagram (SOCK_DGRAM) or sequence packet (SOCK_SEQPACKET) socket type.
- Ancillary data: Linux's unix socket implementation supports passing ancillary data such as passing file descriptors (
SCM_RIGHTS
) or
credentials (‘SCM_CREDENTIALS`) over the socket. There is no support
for ancillary data in the Windows unix socket implementation.
- Autobind feature (see the section on ‘sockaddr_un’ for details).
- socketpair: socketpair socket API is not supported in Winsock 2.0.
Source: https://blogs.msdn.microsoft.com/commandline/2017/12/19/af_unix-comes-to-windows/