XPC, anonymous listener and endpoint: is it working?
XPC, anonymous listener and endpoint: is it working?
- Subject: XPC, anonymous listener and endpoint: is it working?
- From: Stephane Sudre <email@hidden>
- Date: Sun, 21 Aug 2016 11:21:23 +0200
I'm trying to implement the type of architecture described in the
chapter "Anonymous Listeners and Endpoints" of
https://www.objc.io/issues/14-mac/xpc/ .
Problem:
--------
I'm facing a problem with the endpoint of the anonymous listener.
Everything seems to work fine but calling a method of the remote proxy
object using the provided endpoint of the anonymous listener does not
work.
I've simplified the architecture to be able to find where the problem
is but without any success:
1. Process A has a listener running using a mach service name. This works.
2. Process B connects to the mach service name and provides the
endpoint of an anonymous listener to process A. This works.
3. Process A creates a connection to the anonymous listener using the
provided endpoint. This works.
4. Process A gets a remote proxy object for the connection to B. This works.
5. Process A sends a message to the remote proxy object. Nothing happens.
I haven't found any useful piece of info on the developer forums (and
I can't post on it).
I've checked the obvious stuff (the listeners and connections are
resumed. There are no invalidation or interruption of the connections,
the exported object is not dealloced).
So the reason why it's not working is a mistery so far. I could still
be missing something obvious but I haven't seen it when running the
code step by step.
OS X 10.10.5
Question:
---------
- Are anonymous listener working? I haven't found a single sample code
on Apple website or elsewhere.
- Would there be some debug flags or hidden (global) defaults that
would provide more debugging info about XPC communications (or lack
thereof)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden