• 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
Distributed Objects over Network
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Distributed Objects over Network


  • Subject: Distributed Objects over Network
  • From: Eric Clements <email@hidden>
  • Date: Sun, 8 Jul 2001 20:09:57 -0400

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:

Vending App:
-----------------
NSConnection *theConnection = [[NSConnection alloc] init];
[theConnection setRootObject:object];
if ([theConnection registerName:@"MonitorSrcDict"
withNameServer:[NSPortNameServer systemDefaultPortNameServer]] == NO) {
NSLog( @"Couldn't Register %@", name );
}



Client App:
-----------------
srcDictConnection = [NSConnection connectionWithRegisteredName:@"MonitorSrcDict"
host:@"*" usingNameServer:[NSPortNameServer systemDefaultPortNameServer]];

I think the commands are right, but is there something else I need to do? Maybe NetInfo related?

Thanks in advance,
Eric Clements


  • Follow-Ups:
    • Re: Distributed Objects over Network
      • From: Douglas Davidson <email@hidden>
    • Re: Distributed Objects over Network
      • From: Chris Kane <email@hidden>
  • Prev by Date: How to make a plugin?
  • Next by Date: Another question on method declarations
  • Previous by thread: Re: How to make a plugin?
  • Next by thread: Re: Distributed Objects over Network
  • Index(es):
    • Date
    • Thread