site_archiver@lists.apple.com Delivered-To: Cocoa-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=TWCXzfUaw93kNMPN7lee9X4eHoxaQrhqqonzT4CzOIc=; b=HkbSWHdrekhSkTOYIVQ+K4FJpB0uK/0yS0OvjJvGGfi9kPpe1BRiY6AwXAzmwNXN00 G+kMdp4029bLPXjCEKt2MhShgyRnfBSbRP9sL9snAEdZyXiJ5ayZyzXbbYyhBpQYKXKr UgftcAFfpGX3XmXK1U4uzqL8M51IMvu6UamNAeejbMGsH1jKhzPVly9xpoENrIKKcHbb A5Hi5SbjSlD9ZjnnJqil/dWYdAjANFl6V+x/0bzC1lgbfdD3ZQFPSRMEpRsk8A8AcwSv snoDKQfHkViVCdIu8ntqqnyWUi2C6b+WZD14OXBRlydCXre/gJu84hXqqpGLh035Mbvk qZKA== Alistair,
On Sep 18, 2018, at 13:25, Alastair Houghton <alastair@alastairs-place.net> wrote:
On 18 Sep 2018, at 16:48, Sandor Szatmari <admin.szatmari.net@gmail.com> wrote:
Thanks Alistair!
Anyone else have additional info?
Well, Cocoa has Distributed Objects, which you could use for this purpose. DO has some interesting behaviour
Yes, we have several DO apps. We’ve used DO for 10+ years for LAN based peer to peer solution on in house apps. I am looking to implement some new functionality and wanted to stay away from deprecated technology if I can. So, I was looking at newer solutions so as to not reinvent the wheel. So it appears that XPC is only like interprocess DO, and is unable to do inter-machine RPC. Ok, thanks! And quite a nice breakdown of the RPC bone yard. Hearing CORBA takes me back down memory lane. :) Thanks again for your time and thoughts! Sandor
(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. There’s also Sun RPC (which uses the rpcgen tool, which you can find documented here: <https://docs.oracle.com/cd/E19683-01/816-1435/rpcgenpguide-24243/index.html>). Both of those are built-in to the macOS.
There are other options too, but they’ll be more work; for instance CORBA, DCE RPC (or indeed DCOM, which is based on it), SOAP, XML-RPC, or a Restful HTTP(S) interface. Or, indeed, a custom TCP-based server.
Exactly what you use depends on what’s best for your use case, which you don’t describe. In particular, cross-platform support is a major driver here; if you use DO, you probably won’t find it easy to talk to Windows or Linux machines if you ever need to in the future, and while Sun RPC is easy on most UNIX systems, Windows uses DCE RPC. CORBA is probably only of interest if you’re trying to talk to some enterprise system already built with it. SOAP, XML-RPC and Restful HTTP(S) are fairly general purpose and might be good choices if you ever wanted to talk to a server built with (say) Python or Ruby.
Anyway...
Kind regards,
Alastair.
_______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com