Transfer of packages to UDP (UDPclient) C#



  • Hello, a client-server writes on the basis of the UDP protocol, everything's made a dump on the lodge, but when I decided to test the application on the local network, there's a different problem, namely, the packages are sometimes lost, even if I turn off the yin and leave only wi-fy. What's the problem, it's all working as well on the bonfire. I don't know what to do in this situation, please.



  • UDP-packets have the right to lose, everything's fine. It's an expected behavior. If you need a secure delivery, use TCP.

    Or you can serve as an acknowledgement, and if you don't confirm it, repeat it. But such a bike will basically repeat what TCP does inside.




Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2