hostent* host = gethostbyname("www.youkuaiyun.com");
char* pszIP = (char *)inet_ntoa(*(struct in_addr *)(host->h_addr));
域名解析IP地址
最新推荐文章于 2024-02-29 16:29:13 发布
hostent* host = gethostbyname("www.youkuaiyun.com");
char* pszIP = (char *)inet_ntoa(*(struct in_addr *)(host->h_addr));