• 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: "john chen" <email@hidden>
  • Date: Tue, 5 Feb 2008 12:42:33 -0600

Kyle,
Thanks for your answer, I did a search on the list, kubernan has an answer
in the link too.
http://www.cocoabuilder.com/archive/message/cocoa/2001/8/8/19988

Thanks,

John

On Feb 5, 2008 12:37 PM, Kyle Sluder <email@hidden>
wrote:

> 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

References: 
 >Does NSDistantObject works over network ? (From: "john chen" <email@hidden>)
 >Re: Does NSDistantObject works over network ? (From: "Kyle Sluder" <email@hidden>)

  • Prev by Date: Fwd: Conceptually understanding Core Animation
  • Next by Date: Re: Login item support for Panther, Tiger and Leopard
  • Previous by thread: Re: Does NSDistantObject works over network ?
  • Next by thread: stringWithContentsOfURL returns nil
  • Index(es):
    • Date
    • Thread