Listen for ICMP packets in C#

前端 未结 7 934
礼貌的吻别
礼貌的吻别 2020-12-03 00:30

I have a SIP application that needs to send UDP packets to set up the SIP calls. SIP has a timeout mechanism to cope with delivery failures. An additional thing I would like

7条回答
  •  悲哀的现实
    2020-12-03 00:43

    Just use connected udp sockets and the OS will match the icmp unreachable and return an error in the udp socket.

    Google for connected udp sockets.

提交回复
热议问题