3

I'm using domain socket (gRPC) to exchange data between processes, the following code:

rpcListener, err = net.Listen("unix", "path\\to\\my\\uds.sock")
if err != nil {
    l.Errorf("start gRPC server failed: %s", err)
    return
}

will throw following error

start gRPC server failed: listen unix path\to\my\uds.sock: socket: An address incompatible with the requested protocol was used.

On windows 10, this works ok, is windows-server-2008/windows-7 not support domain socket?

coanor
  • 3,746
  • 4
  • 50
  • 67

1 Answers1

3

From AF_UNIX comes to Windows :

Beginning in Insider Build 17063, you’ll be able to use the unix socket (AF_UNIX) address family on Windows to communicate between Win32 processes.

So, it looks like that there is no support for it in older versions of Windows like Windows 7 and Windows Server 2008 and even in older versions of Windows 10.

Steffen Ullrich
  • 114,247
  • 10
  • 131
  • 172