On Friday, October 25, 2002, at 11:41 AM, Trey Harris wrote:
are you saying you are going to pick a language to write the app in?I'm wondering the best way to attack the problem of an app that wants to talk to other machines running the app on the same network segment. If this were straight Unix, I think I'd send out broadcasts and listen for them, but I'm wondering if there's a better way under OS X. (For various reasons, I need to avoid a client/server architecture for this problem.) Perhaps this is what Rendezvous is for? I admit I haven't had a chance to read much about it.Any thoughts? Obviously I'd prefer something I can do with pure Perl, but if I have to dip into ObjC or even Java, I can deal.
then you can use sockets in perl for the apps to communicate.
assuming you can get a list of hosts on the network.
the app could start by seeing if a socket is listening at any of the other host machines.
if so a connection is made.
then try port+1 until get a free port.
the app could then start a server socket listening on that free port waiting for the other apps to connect.
or somesuch.
obo
