mediaios / net-diagnosis

ios平台网络诊断SDK,支持对ip和域名的ping,traceroute(udp,icmp协议),支持tcp ping, 端口扫描,nslookup,局域网活跃ip扫描等功能-----------Ios platform network diagnostic SDK, support ip and domain name ping, traceroute (udp, icmp protocol), support tcp ping, port scan, nslookup, LAN active ip scan and other functions
MIT License
555 stars 132 forks source link

icmp ping 时的疑问 #18

Open yaoxp opened 3 years ago

yaoxp commented 3 years ago
  1. ping结束时对socket的操作 只调用了shutdown,没有调用close
  2. 在ping时调用了两次settingUHostSocketAddressWithHost 这样就会生成两次socket
  3. 域名解析做了两次 settingUHostSocketAddressWithHost和convertDomainToIp
me-boy commented 2 years ago

确实有这个问题