05-18-2012 12:52 PM
@dj143 wrote:
Hi TLE,
Please elaborate more on the ability to automatically reconnect. I have a situation where multiple machines need to communicate status to one machine but they are not always on line.
Thanks,
DJ
The simplest approach would be to poll the server to reconnect in the event you lose the connection. The client would detect the connection is no longer available and then periodically try to reconnect using an Open call. A more sophisticated approach would be to have a separate monitor task on all of your machines. This task would listen for broadcast messages from your various systems that are sent when they come online. When a message is recieved the system can then connect if it needs to communicate with that machine/process.
I would recommend you use the first approach because of its simplicity. The broadcast method can be tricky especially if crossing subnets.
05-21-2012 04:29 PM
Thanks. I got it working. I appreciate your help.