techknight Well-Known Member Licensed User Longtime User Feb 22, 2022 #1 Is there a way that two or more Jars running on the same machine can communicate with each other and pass objects/send subroutine calls easily? Or do you have to implement things like sockets/asyncstreams/MQTT and send objects across, etc. Just curious if there is an easier approach to this than writing socket/asyncstreams code or otherwise Thanks
Is there a way that two or more Jars running on the same machine can communicate with each other and pass objects/send subroutine calls easily? Or do you have to implement things like sockets/asyncstreams/MQTT and send objects across, etc. Just curious if there is an easier approach to this than writing socket/asyncstreams code or otherwise Thanks
William Lancee Well-Known Member Licensed User Longtime User Feb 22, 2022 #2 You you mean a multiform App? That is easy and sharing public subs will work. Two separate Apps running on Windows? No inter-app sub calls. But... 1. Use Shell with command line parameters to start one from the other. 2. Use a file that both can see/modify and do a simple polling/communication protocol. (obviously the two Apps can't modify that file at "exactly" the same time) Upvote 0
You you mean a multiform App? That is easy and sharing public subs will work. Two separate Apps running on Windows? No inter-app sub calls. But... 1. Use Shell with command line parameters to start one from the other. 2. Use a file that both can see/modify and do a simple polling/communication protocol. (obviously the two Apps can't modify that file at "exactly" the same time)
Erel B4X founder Staff member Licensed User Longtime User Feb 23, 2022 #3 I would have used UDP for this. It will be simpler to implement as it is stateless. Upvote 0