• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: XPC Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: XPC Question


  • Subject: Re: XPC Question
  • From: Uli Kusterer <email@hidden>
  • Date: Tue, 23 Oct 2018 08:56:15 +0200

On 18. Sep 2018, at 19:25, Alastair Houghton <email@hidden>
wrote:
> Well, Cocoa has Distributed Objects, which you could use for this purpose.
> DO has some interesting behaviour (in particular, watch out - it can throw
> exceptions, even when calling methods that don’t normally do so), but it does
> let you send messages to objects fairly easily over a network.

From what I remember, DO also has some very ... interesting behaviour when it
comes to time-outs, and predictable timing, as well as dropped connections.
Basically, it mostly assumes a stable, near-instant network, and there's no
good way to recover from a dropped network, and no control over how long it
will take to recover from stalls etc. either.

In short, DO is intended for small LANs, so if you're planning to use it over
the internet ... don't.

If you need a fairly painless way for network communication, I'd suggest
creating your own mechanism on top of queues of message objects and keyed, or
better secure, archiving. You can always model things after XPC, with the same
method names etc.

Cheers,
-- Uli Kusterer
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: XPC Question
      • From: Sandor Szatmari <email@hidden>
  • Prev by Date: Re: Bothersome "NSView-Encapsulated-Layout-Height" constraint?
  • Next by Date: Re: Sharing Files Between My Apps via iCloud
  • Previous by thread: Re: Bothersome "NSView-Encapsulated-Layout-Height" constraint?
  • Next by thread: Re: XPC Question
  • Index(es):
    • Date
    • Thread