Broadcast like UDP with the reliability of TCP

后端 未结 16 1452
陌清茗
陌清茗 2021-01-30 02:30

I\'m working on a .net solution that is run completely inside a single network. When users make a change to the system, I want to launch an announcement and have everyone else h

16条回答
  •  长发绾君心
    2021-01-30 03:13

    I think there are three options, broadly speaking:

    1. Instead of broadcasting UDP, you could create an entity (a thread, process, server, service, or whatever the thing is that exists in your solution) that keeps a list of subscribers and sends unicast UDP messages to them.
    2. Use UDP multicast, but you'll have to write some sort of mechanism that would take care of reliable delivery for you (i.e., retries, timeouts, etc). This also means you have to get a reply from your clients.
    3. If you're not afraid of experimental transport protocols, you might look here for suggestions.,

提交回复
热议问题