Closed takkuumi closed 3 years ago
Hi @NateLing
It depends on how your application works. What is exactly your problem? how to detect the server goes down once it is discovered by UDP multicast? If you discover a server, you probably then connect with the server by:
In these network topologies, you usually use two sockets, one to discover, and another one to "talk" with the server. The second one can connect with the server using the information that the first one provides (ip, port, credentials...).
Maybe the confusion comes from this.
Sorry, i forgot this. i should handle the Disconnected event. if the current discovery-server was down, switch participant to the backup discovery-server. thanks.
I close the issue, feel free to reopen it
New message-io user, thanks for this useful crate.
I don't know how to dynamic switch discovery-server if it goes down, Is there a way to do it?
Like this:
If DS1 goes down, i want to all the participants switch to DS2.