tags:

views:

108

answers:

2

Is there an equivalent to Linux DBus on OSX? I mean, is there a "message bus" available by default on OSX?

Disclaimer: OSX newbie here.

+1  A: 

Probably the closest analog would be distributed notifications (or notifications for same-process communication). It's not a perfect analog, but it fits into roughly the same niche. You can read more about it in Apple's Notification Programming Topics, particularly the part about the distributed notification center.

mipadi
+1: this functionality gets me at least closer to where I want to be headed. Thanks!
jldupont
+1  A: 

There's Mach's ports, which will probably do what you need: http://en.wikipedia.org/wiki/Mach_(kernel) .

Paul R
hmmm... from a quick browse, it appears that "Mach Port" is really just an IPC without the higher level semantics of publish/subscribe... or am I mistaking?
jldupont
@jldupont: yes, Mach ports are just queues and are the lowest level of IPC in Mac OS X - there are various other IPC mechanisms built on top of these.
Paul R
@Paul R: thanks for the clarification. +1 for pointing me in the Mach Port direction... didn't know about those.
jldupont
@jldupont: you might want to look at things like `Mach messaging`, `kqueue` and `notify`, depending on what kind of level you want to do IPC at. Get Amit Singh's book if you're serious about this kind of stuff.
Paul R