The best way for a Mac application to talk to Windows applications

I need to write an application in Mac OS X that sends remote commands to Windows applications to perform some tasks. Computers will be on the same subnet, and Mac and Windows computers will have a fixed IP address.

In fact, the data transferred are just some string or logical parameters, so a Windows application can perform certain tasks.

Someone will write a Windows application and I will write a Mac application.

I can find in the developer document on Mac connectivity with Mac, but nothing about what I need.

What is the best way to achieve this? Which protocol is best for this?

+4
source share
3 answers

There are (at least) two separate issues here:

  • # 1 is how you open another application. Bonjour is one of the features, as well as local broadcasting, since peer hostname is explicitly configured
  • # 2 - how do you talk to another machine when you find it. For this part, I would suggest:
    • a) use TCP instead of UDP (in most cases), so you don’t have to worry about retransmissions and sequences.
    • b) instead of inventing your own client-server protocol over TCP, use the existing one. I hear there is something called "HTTP" that starts to catch ...
0
source

Take a look at the Bonjour SDk for Mac and Windows: http://developer.apple.com/opensource/

+1
source

Could you use UDP to send a message to the network? Your applications (whether they run on Mac or Windows) can listen to the message and process them as needed.

0
source

All Articles