• 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: Distributed object vending problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Distributed object vending problem


  • Subject: Re: Distributed object vending problem
  • From: Ken Thomases <email@hidden>
  • Date: Tue, 21 Sep 2010 00:03:04 -0500

On Sep 20, 2010, at 4:14 AM, Ken Tozier wrote:

> server: (** NSConnection 0x114720 receivePort <NSMachPort: 0x114850> sendPort <NSMachPort: 0x114850> refCount 1 **)

> Ultimately, the client and server will need to work on different machines on a network, thus the call to [NSSocketPortNameServer sharedInstance]
>
> Anyone see what I'm doing wrong?

You are using a name server appropriate for socket ports but your connection is set up using Mach ports.  Those two don't interoperate.

You might be able to use +serviceConnectionWithName:rootObject:usingNameServer:.  You can definitely use +connectionWithReceivePort:sendPort: with socket ports.

It's probably easier to start with using Mach ports on a single machine and then switch to socket ports after you've got everything working.

Regards,
Ken

_______________________________________________

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

References: 
 >Distributed object vending problem (From: Ken Tozier <email@hidden>)
 >Re: Distributed object vending problem (From: Ken Tozier <email@hidden>)

  • Prev by Date: Re: Text item delimiters
  • Next by Date: RE: php and cocoa
  • Previous by thread: Re: Distributed object vending problem
  • Next by thread: Re: Distributed object vending problem
  • Index(es):
    • Date
    • Thread