请帮助我们。我结束了一项简单程序的工作。我需要检查服务器状态。我试图使用InetAdress.isReacheble和Socket。但有时如果服务器在Windows上,我的服务器状态为false。在阅读了大量信息后,我意识到这是java enter link description here的一个bug。但来源很古老。这个问题仍然相关吗? 我尝试使用这个代码注释enter link descrip
//编辑:有没有错的代码,我只是完全愚蠢地忘记它提供@run时间参数... ,所以我尝试使用示例代码微软图书馆网页,https://msdn.microsoft.com/en-us/library/windows/desktop/aa366050(v=vs.85).aspx enter code here
#include <winsock2.h>
#include <iphlpapi.h>