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

Re: Distributed Object Connections


  • Subject: Re: Distributed Object Connections
  • From: Stefan <email@hidden>
  • Date: Tue, 5 Sep 2006 00:24:29 +0200


Check NSConnection delegates. For example, this one:

>>>
connection:shouldMakeNewConnection:
Returns a Boolean value that indicates whether the parent connection should allow a given new connection to be created.


- (BOOL)connection:(NSConnection *)parentConnection shouldMakeNewConnection:(NSConnection *)newConnnection

<<<


Am 04.09.2006 um 23:50 schrieb Henry Skelton:

I am trying to network two computers using distributed objects. So far the code looks like this:

- (void)connectToServer
{
sendPort = [[NSSocketPort alloc] initRemoteWithTCPPort:1234 host:[currentService hostName]];
connection = [NSConnection connectionWithReceivePort:nil sendPort:sendPort];
distantObject = [connection [rootProxy localObject]];
}


- (void)connectToClient
{
clientPort = [[NSSocketPort alloc] initWithTCPPort:1234];
clientConnection = [[NSConnection alloc] initWithReceivePort:recivePort sendPort:nil];
[clientConnection setRootObject:localObject];
}

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: converting NeXTstep NIB files to cocoa
  • Next by Date: InterfaceBuilder - Palletizing Windows
  • Previous by thread: Re: Syntactic sugar
  • Next by thread: InterfaceBuilder - Palletizing Windows
  • Index(es):
    • Date
    • Thread