length of message • poll(…, Int32) -> result • recvfrom(…, UnsafeMutableRawPointer, …) -> length of message pointer to Data pointer to Data for storing timeout 29
application using ping • https://github.com/upa/deadman • Ping͕OKͱͳΔ݅ʢҟͳΔΞυϨε͔ΒԠ͕ฦ͖ͬͯͨ߹ʣ • “Conditions under which a ping is fine (when a response is returned from a different address)” • https://infrastructure-engineer.com/tcpip-basic-0005/ • ICMPͷNAPTӽ͑-ϙʔτ൪߸͕ͳ͍ͷʹͳͥʁ | izuminͷඋ • “ICMP through NAT traversal-Why it can pass without a port number” • https://izuminmin.com/network/icmpping-napt/ 49