Re: Does NSDistantObject works over network ?
Re: Does NSDistantObject works over network ?
- Subject: Re: Does NSDistantObject works over network ?
- From: "Kyle Sluder" <email@hidden>
- Date: Tue, 5 Feb 2008 13:37:02 -0500
On Feb 5, 2008 1:31 PM, john chen <email@hidden> wrote:
> Does anyone know if the sample code in the link
> http://cocoadevcentral.com/articles/000062.php will work over a network?
Not without modification, no.
> I tried to use the code, but when I put the serverName = @"localhost", or
> using ip address for the serverName like serverName = @"192.168.1.100", the
> m_server will become nil.
Because the server has to be registered with NSSocketPortNameServer in
order to get at it from over the network.
> I was wondering if NSDistributeObject can work over netowrk? Do we have to
> use NSSocketPort ?
Yes and yes. The documentation makes this rather explicit:
http://developer.apple.com/documentation/Cocoa/Conceptual/DistrObjects/Concepts/ports.html#//apple_ref/doc/uid/20000762-96819
--Kyle Sluder
_______________________________________________
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