hostent* host = gethostbyname("www.csdn.net");
char* pszIP = (char *)inet_ntoa(*(struct in_addr *)(host->h_addr));
域名解析IP地址
最新推荐文章于 2025-07-23 19:23:33 发布
hostent* host = gethostbyname("www.csdn.net");
char* pszIP = (char *)inet_ntoa(*(struct in_addr *)(host->h_addr));