Sockets vs named pipes for local IPC on Windows?

后端 未结 2 453
北荒
北荒 2020-12-29 05:26

Are there any reasons for favoring named pipes over sockets for local IPC (both using win-api), effectiveness-wize, resource-wize or otherwise, since both behave very much a

2条回答
  •  一个人的身影
    2020-12-29 06:10

    Another solution you may want to consider is a named shared memory region. It is a little bit of work because you have to establish a flow control protocol yourself, but I have used this successfully in the past where speed was the most important thing.

提交回复
热议问题