Home > Back-end >  QT UDP each receive 65536 16 to the power of (2) you lost a bag, bag is what reason, how to solve?
QT UDP each receive 65536 16 to the power of (2) you lost a bag, bag is what reason, how to solve?

Time:10-02

QT using QUdpSocket udp packet reception and found an amazing phenomenon, each receiving 65536 16 to the power of (2) a bag will throw a bag (2), by changing the contract rate, udp, suggesting that this bug is not because performance bottlenecks caused by (note: contract is uniform)

Don't know what other platforms when using udp c + + language have the same problem? If so, please help solve, thank you!

CodePudding user response:

Udp is not reliable transmission, packet loss is not very normal?
You are asking very rule?

CodePudding user response:

Udp is inherently unreliable, reliable udp use udt

CodePudding user response:

reference 1st floor SDGHCHJ response:
udp is not reliable transmission, packet loss is not very normal?
You are asking very rule?
yes lose very rules no matter what situations in 65536 lost package

CodePudding user response:

refer to the second floor smwhotjay response:
udp is inherently unreliable, reliable udp use udt
this can consider, but before that the solution to this problem
  • Related