This is my 1st attempt at creating a multi-server multi-client chat application.
Note: ServerA must be running otherwise Chat Servers will not launch.
Anything I post is an example only and is not intended to be the only solution, the total solution nor the final solution to your request nor do I claim that it is. If you find it useful then it is entirely up to you to make whatever changes necessary you feel are adequate for your purposes.
Version 2 is the same as Version 1 except for the following changes:
1) ServerA now accepts Case 110 so Chat servers can re-connect in the event ServerA goes down
2) Chat server sets up a timer loop trying to re-connect to ServerA. This loop continues
until either Chat server is closed or ServerA comes back up again.
When ServerA comes back up, Chat server sends ServerA it's server number, client port number
and a list of current users still connected. Chat server sends message to Case 110
Other than the above 2 no other changes have been made
Anything I post is an example only and is not intended to be the only solution, the total solution nor the final solution to your request nor do I claim that it is. If you find it useful then it is entirely up to you to make whatever changes necessary you feel are adequate for your purposes.
Of course I remember you. I have a lot of your client/server examples in my collection and in fact your are probably my protege as I learned much from you especially multi-client/server applications.
Thanks for the reply.
Version 3 is coming soon.
Anything I post is an example only and is not intended to be the only solution, the total solution nor the final solution to your request nor do I claim that it is. If you find it useful then it is entirely up to you to make whatever changes necessary you feel are adequate for your purposes.
Version 2 (Post 2) has been updated to correct a problem - use link from post 2
Anything I post is an example only and is not intended to be the only solution, the total solution nor the final solution to your request nor do I claim that it is. If you find it useful then it is entirely up to you to make whatever changes necessary you feel are adequate for your purposes.