Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Rendezvous, Distributed Objects, Port selection, IP/OOP asymmetry



I have gotten Rendezvous + Distributed Objects working ... almost. :-)

On the server I create an NSConnection, passing the same NSSocketPort for both sender and receiver.

On the client I create an NSConnection, passing a nil receiver and a server NSSocketPort that I create using initRemoteWithTCPPort with the information pulled from Rendezvous.

So far so good, and this works fine when the client and server are separate processes. When both are in the same process, I get -[NSProxy doesNotRecognizeSelector:ping:] when I try to invoke a method (here ping:) on the proxy.

Two questions:

1. Is there another idiom for creating the sockets that will work symmetrically in and out of process?

2. If not, is there a preferred way for dealing separately with the in-process case?

Regards,
Stuart Halloway
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.