Re: Distributed Object problems
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.