• 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: Does NSDistantObject works over network ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Does NSDistantObject works over network ?
      • From: "john chen" <email@hidden>
References: 
 >Does NSDistantObject works over network ? (From: "john chen" <email@hidden>)

  • Prev by Date: Does NSDistantObject works over network ?
  • Next by Date: Fwd: Conceptually understanding Core Animation
  • Previous by thread: Does NSDistantObject works over network ?
  • Next by thread: Re: Does NSDistantObject works over network ?
  • Index(es):
    • Date
    • Thread