peacemaker Expert Licensed User Longtime User Jan 10, 2022 #1 Hi, All How can 2 apps pass the data between, excepting just a file on a drive ? It's for saving SSD flash from run-out by lots of RW-operations. If important - let it be under Windows OS. Any ideas ?
Hi, All How can 2 apps pass the data between, excepting just a file on a drive ? It's for saving SSD flash from run-out by lots of RW-operations. If important - let it be under Windows OS. Any ideas ?
mcqueccu Expert Licensed User Longtime User Jan 10, 2022 #2 Just pass the file (data) location to the two softwares. For example if the file is located on C Drive => C:/sharedData/test.csv Just use File.Readstring in both apps specifying the location and file name Upvote 0
Just pass the file (data) location to the two softwares. For example if the file is located on C Drive => C:/sharedData/test.csv Just use File.Readstring in both apps specifying the location and file name
Mark Read Well-Known Member Licensed User Longtime User Jan 10, 2022 #3 I am not sure if it is possible but there seems to be a lot of info in Google, have you thought about using UDP or MQTT? Stackoverflow says that for UDP you need to bind the port. Erel has an example here. Last edited: Jan 10, 2022 Upvote 0
I am not sure if it is possible but there seems to be a lot of info in Google, have you thought about using UDP or MQTT? Stackoverflow says that for UDP you need to bind the port. Erel has an example here.
peacemaker Expert Licensed User Longtime User Jan 10, 2022 #4 mcqueccu said: pass the file Click to expand... I mentioned that it looks like the SSD may be dead soon, if apps are running 24\7. Mark Read said: UDP Click to expand... It looks like the solution. If to use sockets and B4XSerializator Last edited: Jan 10, 2022 Upvote 0
mcqueccu said: pass the file Click to expand... I mentioned that it looks like the SSD may be dead soon, if apps are running 24\7. Mark Read said: UDP Click to expand... It looks like the solution. If to use sockets and B4XSerializator
Erel B4X founder Staff member Licensed User Longtime User Jan 10, 2022 #5 Mark Read said: Stackoverflow says that for UDP you need to bind the port. Erel has an example here. Click to expand... This is not needed. Use UdpSocket.Initialize2 and pass True to the LoopbackOnly parameter. Upvote 0
Mark Read said: Stackoverflow says that for UDP you need to bind the port. Erel has an example here. Click to expand... This is not needed. Use UdpSocket.Initialize2 and pass True to the LoopbackOnly parameter.
JakeBullet70 Well-Known Member Licensed User Longtime User Jan 11, 2022 #6 UDP is not guaranteed to arrive. Yes, it works 99% of the time but as one who has used it in a production setting I ended up sending each message 3 times. If you are on the same machine I would use memory mapped files. Upvote 0
UDP is not guaranteed to arrive. Yes, it works 99% of the time but as one who has used it in a production setting I ended up sending each message 3 times. If you are on the same machine I would use memory mapped files.
peacemaker Expert Licensed User Longtime User Jan 11, 2022 #7 JakeBullet70 said: UDP is not guaranteed to arrive Click to expand... Even inside the single localhost ? JakeBullet70 said: memory mapped files Click to expand... Interesting, any code examples for B4J ? Upvote 0
JakeBullet70 said: UDP is not guaranteed to arrive Click to expand... Even inside the single localhost ? JakeBullet70 said: memory mapped files Click to expand... Interesting, any code examples for B4J ?
JakeBullet70 Well-Known Member Licensed User Longtime User Jan 11, 2022 #8 peacemaker said: Even inside the single localhost ? Click to expand... No idea. But I will tell you its a terrible bug to find as it seems when you are testing it ALWAYS works. peacemaker said: Interesting, any code examples for B4J ? Click to expand... I know Java supports it but have not seen any examples. Upvote 0
peacemaker said: Even inside the single localhost ? Click to expand... No idea. But I will tell you its a terrible bug to find as it seems when you are testing it ALWAYS works. peacemaker said: Interesting, any code examples for B4J ? Click to expand... I know Java supports it but have not seen any examples.
peacemaker Expert Licensed User Longtime User Jan 11, 2022 #9 JakeBullet70 said: No idea Click to expand... Do you use UDP via Internet (with found non-arrive trouble) ? Not used on single localhost practically ? Upvote 0
JakeBullet70 said: No idea Click to expand... Do you use UDP via Internet (with found non-arrive trouble) ? Not used on single localhost practically ?
Erel B4X founder Staff member Licensed User Longtime User Jan 11, 2022 #10 UDP over localhost should be reliable. It is very different than UDP over the network. If you are worried about it then use TCP or MQTT. Upvote 0
UDP over localhost should be reliable. It is very different than UDP over the network. If you are worried about it then use TCP or MQTT.