Ensuring packet order in UDP

前端 未结 4 1221
陌清茗
陌清茗 2021-01-04 20:21

I\'m using 2 computers with an application to send and receive udp datagrams. There is no flow control and ICMP is disabled. Frequently when I send a file as UDP datagrams v

4条回答
  •  太阳男子
    2021-01-04 20:39

    is there a way to make sure winsock and send() will send the packets the same way they got there?

    It's called TCP.

    Alternatively try a reliable UDP protocol such as UDT. I'm guessing you might be on a small embedded platform so you want a more compact protocol like Bell Lab's RUDP.

提交回复
热议问题