The most reliable and efficient udp packet size?

前端 未结 4 1990
谎友^
谎友^ 2020-12-08 07:16

Would sending lots a small packets by UDP take more resources (cpu, compression by zlib, etc...). I read here that sending one big packet of ~65kBYTEs by UDP would probably

4条回答
  •  囚心锁ツ
    2020-12-08 08:15

    You're probably using the wrong protocol. UDP is almost always a poor choice for data you care about transmitting. You wind up layering sequencing, retry, and integrity logic atop it, and then you have TCP.

提交回复
热议问题