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