Re: Distributed object vending problem
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