hostent* host = gethostbyname("www.csdn.net");
char* pszIP = (char *)inet_ntoa(*(struct in_addr *)(host->h_addr));
域名解析IP地址
最新推荐文章于 2024-05-22 20:24:17 发布
hostent* host = gethostbyname("www.csdn.net");
char* pszIP = (char *)inet_ntoa(*(struct in_addr *)(host->h_addr));