help-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: porting code that uses NSSocketPort


From: Richard Frith-Macdonald
Subject: Re: porting code that uses NSSocketPort
Date: Thu, 15 Sep 2005 14:06:11 +0100

On 2005-09-15 13:08:13 +0100 Morgan Giddings <giddings@unc.edu> wrote:

I am not at all clear how using an NSFileHandle would help.

I have a DO based, client/server app where there can be up to 20 or more distributed processes (servers) on a cluster/grid, each talking to the "client" to perform processing and return results. There is extensive interaction (method invocation) between these objects on the disparate machines and the client.

Is that really something that can be done with NSFileHandle?

Sorry, I was under the impression that you were using NSSocketPort to send directly rather than using NSConnections.

No, NSFileHandle is not good for DO.

I'm used to DO processes using named ports ... in which case there is generally no need to work with specific TCP/IP port numbers. However, if you do need to use specific port numbers for DO communications, then portWithNumber:onHost:forceAddress:listener: is the method to use, and you can easily implement the equivalent new MacOS-X method in a category if you like.






reply via email to

[Prev in Thread] Current Thread [Next in Thread]