其他分享
首页 > 其他分享> > Send same packets to multiple clients

Send same packets to multiple clients

作者:互联网

https://stackoverflow.com/questions/4883689/send-same-packets-to-multiple-clients

 

question:

I have to develop a software to send same packets to multiple destination. But i must not use multicast scheme.!!!! ( because my boss is a stupid man ) so, any way, the problem is that: i have same packets and multiple IP address ( clients) and i can not use multicast how can i do that in the best way? i must use c++ as a language and Linux as a platform. so please help me



answer:

This could be done with either TCP or UDP depending on your reliability requirements. Can you tolerate lost or reordered packets? Are you prepared to handle timeouts and retransmission? If both answers are "yes", pick UDP. Otherwise stay with TCP. Then:

标签:UDP,multiple,clients,packets,use,TCP,same
来源: https://www.cnblogs.com/ztguang/p/16108317.html