摘要: 只需调用一个函数即可gethostbyname(),gethostbyname()返回对应于给定主机名的包含主机名字和地址信息的hostent结构指针。结构的声明与gethostaddr()中一致。下面是函数原型: Windows平台下 #include struct hostent FAR *PASCAL FAR gethostbyname(const char FAR * name); ... 阅读全文
posted @ 2014-05-23 09:15 lizs 阅读(8296) 评论(0) 推荐(0) 编辑