I have two independent application:-
Application A:- Currently under development and hence use VS debug operation, sometime I quit the test via VS rather than exiting the application which close particular session (this is rather a bad habit, I admit) with the equipment at the network. This equipment is left with open session and will crash if the application A run again and attempt to open the session. I'm using Tektronix VISA protocol to open and close session to the network and comminicate with equipment remotely.
Application B:- This is fully independent program that sit on background and recieves the session information from the Application A, it also recieves watchdog signal (every 1-10 second say) from the Application A so that it know it running. When Application A discontinue without proper exit, the watchdog signal to Application B discontinue and hence the timeout event, which close the session on behalf of the Application A.
What is the best way to send string, int data to to the Application B and send watchdog signal to Application B?.
One possible solution is to transfer file into HD and update them with timestamp and session details, I looking for smarter way to transfer data real time.
Any suggestion how, please send working example if possible.