摘要:
inet_addr()
简述:将一个点间隔地址转换成一个in_addr。
#include
unsigned long PASCAL FAR inet_addr( const struct FAR* cp);
cp:一个以Internet标准“.”间隔的字符串。 阅读全文
摘要:
#include
#include
struct hostent *gethostbyname(const char *name);
这个函数的传入值是域名或者主机名,例如"www.google.cn"等等。传出值,是一个hostent的结构。如果函数调用失败,将返回NULL。 阅读全文