• 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 problems
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Distributed Object problems


  • Subject: Re: Distributed Object problems
  • From: "Laurent Daudelin" <email@hidden>
  • Date: Thu, 08 Jan 2004 17:29:32 -0500

On 08/01/04 16:21, "Amilcar Meneses Viveros"
<email@hidden> wrote:

> I have problems when I try to conect with a distributed object.
> The apple manual say that
>
> id theProxy;
> theProxy = [[NSConnection
> rootProxyForConnectionWithRegisteredName:@"server"
> host:nil] retain];
> [theProxy setProtocolForProxy:@protocol(ServerProtocol)];
>
> The problem is when tou change host: nil for a host name, some like this:
> theProxy = [[NSConnection
> rootProxyForConnectionWithRegisteredName:@"server"
> host:@"darwin11.cs.cinvestav.mx"] retain];
>
> In anothe hand, I try with this too
>
> theProxy = [[NSConnection
> rootProxyForConnectionWithRegisteredName:@"server"
> host:[[NSHost current] name] retain];
>
> but the connection don't work.
>
> Somebody can help me?
> Thanks!
>

Are you user the host name you provide is valid? Where is the process with
name "server" is running? On the same machine where you're trying to run the
above code or another machine on the network? Why do you have to connect to
a specific host? The 'nil' value provided in the Apple example means that
the application will check your network for the server "server", while with
a specific host, the connection will try to connect to "server" only on that
host.

-Laurent.
--
========================================================================
Laurent Daudelin Developer, Multifamily, ESO, Fannie Mae
mailto:email@hidden Washington, DC, USA
************************ Usual disclaimers apply ***********************
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: Collection classes
  • Next by Date: Re: Thinking about shareware prices... (was a question about
  • Previous by thread: Distributed Object problems
  • Next by thread: localization
  • Index(es):
    • Date
    • Thread