views:

19

answers:

1

I wish to know that If protocol family AF_INET is used for local communication (IPC) in windows systems. (with loopback interface) will it be able to give performance same as AF_UNIX in unix. I tried for Named pipe in windows but it doesn't seems to me working for my case.

AF_INET when used it will go through the TCP/IP stack. which will be overhead in case of intranode communication. Please let me know for any clarification.

A: 

The IPC using the loopback interface is quiet fast. I can't compare the performance with a AF_UNIX implementation. But it should give you a similar programming interface (sockets).

For high performance IPC you might consider using shared memory. But in that case you would miss the comfort of the streaming communication as you find with sockets.

You should also check, what requirement leads you to the performance question?

harper
Thanks Harper. Do you have any document which states this or any example ?
Arpit
It was also my understanding that NT detects loopback usage of sockets and shortcuts the call into a lrpc call over a memory mapping rather than traversing the socket stack. Wish I could find a reference tho :/
Chris Becke