Which is better for local IPC, POSIX message queues (mqueues) or Unix domain (local) sockets?

前端 未结 3 1363
无人共我
无人共我 2020-12-23 21:15

Is it better to use POSIX message queues or Unix domain sockets for local IPC communication?

I have worked with Unix sockets between machines (not domain) and I reme

3条回答
  •  忘掉有多难
    2020-12-23 22:14

    I'd suggest looking at DBus for such an application, if only for their data marshalling and RPC like interface (both synchronous and asynchronous). It uses domain sockets natively and works really welll after an initial learning curve.

提交回复
热议问题