way to implement IPC

后端 未结 5 1230
感动是毒
感动是毒 2021-01-14 22:56

what is the preferred way to implement IPC over windows ?

i know of several like : named pipe, shared memory, semaphors ? , maybe COM (though i\'m not sure how)...<

5条回答
  •  隐瞒了意图╮
    2021-01-14 23:16

    Either RPC / out-of-process COM or DCOM (which will eventually use RPC anyways) are the preferred way to do IPC in Windows unless you're doing something really simple - I've seen so many cases of people going down the named pipes route, and ending up basically reimplementing what DCOM gives you for free. Don't make the same mistake :)

提交回复
热议问题