Simple question that may or may not be programming related. I'm a
mechanical engineering student so I'm trying to be as clear as I can
here. This list entry may be a duplicate as the first attempt
exceeded 25k in size.
It seems NSConnection will return a proxy object but only when both
"ends" are on the same machine, over a network, it will "hang". The
application can quit and other buttons and returns nil.
Here is some of the console output for the client.
2008-07-18 03:32:05.149 YANA-Client[4569:10b] [NSPortCoder
sendBeforeTime:sendReplyPort:] timed out (10238055525.147535
238055525.148441) 1
We've attempted to go through the firewall(s) using System Preferences
with no success. What I did notice was that when I used the sendPort
method from the NSConnection we saw that the port types were Mach-
based and from the ADC documentation it seems to indicate that these
ports are internal to the OS and inaccessible remotely. Anyway to
"force" the port types to be non-Mach? I have not seen anything in
the API to indicate it.
I have used sockets before (years ago) and when I tried to replicate
previous successes, but the very presence of the accept() command
immediately freezes my client. Right now, the idea of using these
objects is a HECK of a lot more appropriate for our application (by
far).
Here is the code for the client application (which has been cut down
to avoid this list's 25k size limit):