Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > NSConnection over the net

NSConnection over the net
Thread Tools
Dedicated MacNNer
Join Date: Jun 2000
Location: Dundas, Ontario, Canada
Status: Offline
Reply With Quote
Sep 25, 2001, 11:07 PM
 
Hello,

Has anyone had any success using NSConnection to get distant objects over the network? I have been able to get it to work between program on the same system with the host name being nil but as soon as I try to use any actual host name it doesn't work.

Any ideas?

Jeff.
Spectral Class
"Shedding Light on Innovation"
     
Addicted to MacNN
Join Date: Mar 2000
Location: London, UK
Status: Offline
Reply With Quote
Sep 26, 2001, 01:33 AM
 
I think I read that you need to connect directly by IP...
     
Dedicated MacNNer
Join Date: Jun 2000
Location: Dundas, Ontario, Canada
Status: Offline
Reply With Quote
Sep 26, 2001, 02:17 AM
 
That was what I thought but it didn't work. I have tried (while testing to connect to myself as if I were not on this machine) "localhost", my domain name and my IP. No luck, though.

Any other ideas?
Jeff.
Spectral Class
"Shedding Light on Innovation"
     
Dedicated MacNNer
Join Date: Jun 2000
Location: Dundas, Ontario, Canada
Status: Offline
Reply With Quote
Sep 26, 2001, 06:46 PM
 
I found out what one of the problems was but I still have another. I was having a problem before because I was implicitly using NSPort objects for the connection where remote connections demand the use of NSSocketPort objects. Now that I have fixed that, I am getting a new problem.

Whenever I try to connect to the server of a DO I get this message when I try to send the "rootProxy" message to the DO:
[NSPortCoder sendBeforeTime:sendReplyPort:] timed out

I can't figure out how to avoid this problem and I can't find that "sendBeforeTime:sendReplyPort:" method in the NSSocketPort class or any of the classes that it inherits from.

Can anyone offer some assistance?
Jeff.
Spectral Class
"Shedding Light on Innovation"
     
   
Thread Tools
Forum Links
Forum 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 On
Top
Privacy Policy
All times are GMT -5. The time now is 12:20 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2