|
|
|
|
|
by thomashabets2
198 days ago
|
|
Since basically all the comments are about how both the author and many commenters are confused about what UDP and DGRAM sockets are, I have corrected the author's code to no longer miscommunicate what protocol is being used. https://github.com/ThomasHabets/rust-ping-example-corrected There is no UDP used anywhere in this example. ICMP is not UDP. I'm not saying my fix is pretty (e.g. uses unwrap(), and ugly destination address parsing), but that's not the point. |
|