way to implement IPC

后端 未结 5 1232
感动是毒
感动是毒 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:39

    Take a look at boost::interprocess.

    Shared memory is probably the fastest in general, but somewhat error-prone and limited to local processes.

    COM is fully versioned and automatically supports remote IPC, but obviously it's platform-specific.

    For a large-scale application you might want to consider something like ActiveMQ or OpenMQ.

提交回复
热议问题