摘要: 使用这个东西,首先要包含2个头文件: #include #include struct hostent *gethostbyname(const char *name); 这个函数的传入值是域名或者主机名,例如" www.google.com","wpc "等等。 传出值,是一个hostent的结 阅读全文
posted @ 2009-06-26 19:53 on_road 阅读(953) 评论(0) 推荐(0) 编辑