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