How to send large data using C# UdpClient?

后端 未结 4 590
死守一世寂寞
死守一世寂寞 2021-01-04 11:31

I\'m trying to send a large amount of data (more than 50 MB) using C# UdpClient.

So at first I split the data into 65507 byte blocks and send them in a loop.

4条回答
  •  春和景丽
    2021-01-04 12:11

    I hate to say it but you need to sleep the thread. You are overloading your throughput. UDP is not very good for lossless data transfer. UDP is for when you don't mind dropping some packets.

提交回复
热议问题