zpl-c / enet

⚡️ ENet reliable UDP networking library
https://blog.zpl.pw
MIT License
650 stars 62 forks source link

about tests example #52

Closed kuangtu closed 3 months ago

kuangtu commented 3 months ago

In the securities technology system, generally the market data can be sent in multicast protocol to ensure the speed and fairness of transmission. Whether related use cases can be added to the test example?

inlife commented 3 months ago

Enet does not implement the Multicast Protocol directly, but since it offers direct UDP capabilities, such functionality could be built on top.

In the current server-client model, the assumption would be that the client would have to be connected to multiple instances of different servers, and each data transfer call would internally send data to multiple destinations.

Please let me know if that makes sense.

kuangtu commented 3 months ago

The scenario for market data distribution is outlined in the following diagram. marketdata In the Enet server-client model, the client establishes a connection simulating TCP, and the server subsequently polls data in a sequential manner and distributes packets to the clients?