• 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
Rendezvous, Distributed Objects, Port selection, IP/OOP asymmetry
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Subject: Rendezvous, Distributed Objects, Port selection, IP/OOP asymmetry
  • From: Stuart Halloway <email@hidden>
  • Date: Wed, 28 Jan 2004 00:01:30 -0500

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.

  • Prev by Date: Re: OT: Advice sought...
  • Next by Date: Re: Name instance variables, methods and parameters.
  • Previous by thread: Re: Preferences
  • Next by thread: Doe each NSTableView requires its own controller?
  • Index(es):
    • Date
    • Thread