How do I know if ICMP Host Unreachable received after trying to send some data to the UDP port? I want to check open UDP ports on a machine.
Use connect(2)- you will receive an error message on the second sending, more about connected UDP sockets .
connect(2)
Source: https://habr.com/ru/post/1784387/More articles:How to configure WebView to allow getImageData on canvas from local or remote files? - javascriptGet current system volume in Windows 7 - c #The output is displayed in the console, but disappears when redirected to a file - windowshow to find out if a file is open for writing - phpIs there a way in Java (+ - JNA) to establish a reliable master system level in XP + Vista + Windows 7? - javaIncorrect syntax near comma - sqlWhat is the difference between "xxx-compliant" and "xxx-compatible"? - terminologyuse sheet in excel user-defined function - vbaWhy do scrollbars appear when using an SVG element inside a DIV? - jqueryAdd image contact in address book - objective-cAll Articles