New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Development and Darwin Discussion and questions about development for Mac OS X.

Distributed Objects


Post Reply New Thread Subscribe

 
Thread Tools
sfurlani

 
Member Since: Nov 18, 2009
Posts: 1
sfurlani is on a distinguished road

sfurlani is offline
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)]);
}
The Server App finds the Port and Connection, but Raises a TimeOut exception:

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];

  }
And I can't figure out for the life of Me WHY.

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.
QUOTE Thanks

Post Reply New Thread Subscribe


« Lazarus + OSX 10.6 ?? | Problem with launching x11 applications »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
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 03:13 PM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?