1
katsusan 2019-01-05 15:37:29 +08:00
https://godoc.org/golang.org/x/net/icmp#ListenPacket
ListenPacket listens for incoming ICMP packets addressed to address. See net.Dial for the syntax of address. For non-privileged datagram-oriented ICMP endpoints, network must be "udp4" or "udp6". The endpoint allows to read, write a few limited ICMP messages such as echo request and echo reply. Currently only Darwin and Linux support this. 看下面的 example 里 windows 好像是不支持的. |