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.
IcmpSendEcho2 文档说:
ReplyBuffer 包含 ICMP 回显响应(如果有)。
对于 ICMP 来说,如果只发送一个请求,是不是只需要 0 个或 1 个响应?
如果是这样,这是否意味着 IcmpSendEcho2 可以发送多个请求,因为它可以接收多个响应?如果是这样,有没有办法找出发送了多少请求?
所有这一切的目标是尝试获得数据包丢失百分比,但需要知道发送了多少请求。
IcmpSendEcho2()发送 1 个请求,但可以生成多个响应。输出是一个响应数组,因此您必须确保该数组足够大以接收所有响应。
IcmpSendEcho2()