UDP Response

后端 未结 6 1583
野趣味
野趣味 2021-01-19 02:17

UDP doesnot sends any ack back, but will it send any response?

I have set up client server UDP program. If I give client to send data to non existent server then wil

6条回答
  •  独厮守ぢ
    2021-01-19 02:43

    The UDP protocol is implemented on top of IP. You send UDP packets to hosts identified by IP addresses, not MAC addresses.

    And as pointed out, UDP itself will not send a reply, you will have to add code to do that yourself. Then you will have to add code to expect the reply, and take the proper action if the response is lost (typically resend on a timer, until you decide the other end is "dead"), and so on.

提交回复
热议问题