Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在尝试向 UDP 端口发送一些数据后,我如何知道 ICMP 主机是否无法访问?我想检查机器上打开的 UDP 端口。
使用connect(2)- 您将在第二次发送时收到错误,请参阅有关已连接 UDP 套接字的更多信息。
connect(2)