Re: Distributed Objects over Network
Re: Distributed Objects over Network
- Subject: Re: Distributed Objects over Network
- From: Douglas Davidson <email@hidden>
- Date: Mon, 9 Jul 2001 10:55:42 -0700
On Sunday, July 8, 2001, at 05:09 PM, Eric Clements wrote:
I am using Distributed Objects to share objects between 2
applications. They work locally on the same machine when I use "nil"
for the host: parameter, but does not work over the Network between
hosts with "host:" set to @"*" (see below). My goal is to have them
work over the network and I am having NO LUCK. Does anyone know if I
have to do something special to make them work... Here is a snippet of
the code:
Yes, you do have to do something special. The default NSPort subclass
and the name server work only on the local machine. You need to use
NSSocketPorts instead, and rendezvous based on port number and IP
address, to use DO across the network. I believe Chris Kane posted an
example of this to one of the mailing lists--either this one or the Omni
one--you can look for that.
Douglas Davidson