| OS X - Development and Darwin Discussion and questions about development for Mac OS X. |
| Post Reply | New Thread | Subscribe |
|
|
Thread Tools |
![]() Member Since: Nov 18, 2009
Posts: 1
![]() |
Hello,
I've given myself a headache trying to figure out how to run this Distributed Objects demo. I can run it just fine locally on the same machine. Here's the situation. I have a Server App that spawns a Client App [with OpenGLView] on a remote machine. I can do this easy with AppleScript. The Client App seems to Vend it's OpenGLView window OK: Code:
clientPort = [[NSSocketPort alloc] initWithTCPPort:SERVER_PORT];
if(clientPort == nil) continue; else NSLog(@"Port OK");
clientConnection = [NSConnection connectionWithReceivePort:clientPort sendPort:nil];
if(clientConnection == nil) continue; else NSLog(@"Conn OK");
[[NSSocketPortNameServer sharedInstance] registerPort:clientPort name:@"DOTest3_0"];
//Vend Object
@try {
[clientConnection setRootObject:object];
NSLog([NSString stringWithFormat:@"Port %d: Vend OK", (SERVER_PORT + i)]);
return;
} @catch (...) {
NSLog([NSString stringWithFormat:@"Port %d: Vend Next", (SERVER_PORT + i)]);
}
Code:
// Create temporary Pointer to kGLView Object.
id <NSCoding, kGLViewProtocol> openGLView;
// Setup Port, Connection, & Proxy
portTest = (NSSocketPort *)[[NSSocketPortNameServer sharedInstance] portForName:@"DOTest3_0" host:@"*"];
if (portTest == nil ) continue ; else NSLog(@"Port OK");
connTest = [NSConnection connectionWithReceivePort:nil sendPort:portTest];
if (connTest == nil ) continue ; else NSLog(@"Conn OK");
openGLView = [[connTest rootProxy] retain];
if (openGLView == nil ) continue ; else NSLog(@"OpenGL OK");
[openGLView drawWithRotation: rotationAngle];
}
I get in the Console of the Client PC: "Port OK" "Conn OK" "Port 8081: Vend OK" I get in the Console of the Server PC: "Port OK" "Conn OK" 11/18/09 2:05:36 PM DOTest3[15278] [NSPortCoder sendBeforeTime:sendReplyPort:] timed out (10280263936.092180 280263936.092642) 1 Even if the TimeOuts are both set to 60 seconds. Help! -Stephen --- Server: MacMini OS X 10.5 Client: MacPro OS X 10.6 Remote Login, Management, etc. are all enabled. Last edited by sfurlani; 11-18-2009 at 02:17 PM. Reason: Mac Hardware Info |
| QUOTE Thanks | |
| Post Reply | New Thread | Subscribe |
| Thread Tools | |
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
|
|||||||
Thread |
Thread Starter |
Forum |
Replies |
Last Post |
| Keynote 3: Hide objects while editing | zeta101 | OS X - Apps and Games | 2 | 10-14-2010 10:41 PM |
| Distributed Issue Tracking | stay[c]runchy | OS X - Development and Darwin | 0 | 02-14-2009 02:43 AM |
| Shared or Distributed Memory? | Debra Baker | OS X - Development and Darwin | 0 | 01-31-2008 12:52 PM |
| Creating shared objects (dylibs) | xwasp | OS X - Development and Darwin | 3 | 10-01-2006 11:31 AM |
All times are GMT -4. The time now is 04:37 AM.
Powered by vBulletin