I have done some network programming and IPC programming before, but never in Xojo. I have C++ and Python experience, but I am pretty new to Xojo and pretty lost.
Problem
Connecting two applications:
Application1 and Application2 are connected by IPCSocket. Application1 is the server that is listening.
Application2 is the client that is connected.
When Application2 is disconnected, and then restarted, it will not connect to Application1 any longer.
Inspection of Application1 in the debugger shows that error 102 Lost Connection
is the LastErrorCode
Scenario
We have an app that is in Xojo. I have been following the IPCSocket example project that is included as well as using the documentation for the IPCSocket.
I can get the socket to work, but I can not get the socket to successfully disconnect and then reconnect to the same local server. The example does not give any indication on how this should be done. The documentation is what I would consider to be sparse.
Is it possible to disconnect a Xojo IPCSocket and reconnect similar to the way a Server connecting over TCP would function? or... Am I wasting my time attempting this route and should I explore another means of IPC?