Re: XPC Question
On Sep 18, 2018, at 4:00 AM, Sandor Szatmari <admin.szatmari.net@...> wrote:Can you do XPC RPC over an IP connection? Or, in other words… Can you do XPC between two computers?
Not as far as I know.
In general, it’s a bad idea to use this sort of “hidden” RPC across a network. Networking is fundamentally unlike local function calls, and making a network call look exactly like a method call hides those differences and makes it easy to run into problems handling failures, dealing with protocol changes, enforcing security, and more.
Unfortunately Apple doesn’t have any good frameworks for implementing messaging between computers, especially on the listener (“server”) end. The best general purpose protocol right now is probably WebSockets, but there’s still no support for it in Apple’s frameworks, and it’s not easy to implement yourself.
—Jens