Broadcast like UDP with the reliability of TCP

后端 未结 16 1450
陌清茗
陌清茗 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:26

    You could implement your own TCP-like behaviour at the application layer.

    So for instance, you'd send out the UDP broadcast, but then expect a reply response from each host. If you didn't get a response within X seconds, then send another and so on until reaching some sort of threshold. If the threshold is reached (i.e. the host didn't respond at all), then report an error.

    To do this though, you'd need a pre-defined list of hosts to expect the responses back from.

提交回复
热议问题