Chinaunix首页 | 论坛 | 博客
  • 博客访问: 376037
  • 博文数量: 48
  • 博客积分: 743
  • 博客等级: 上士
  • 技术积分: 956
  • 用 户 组: 普通用户
  • 注册时间: 2011-11-22 13:51
文章分类

全部博文(48)

文章存档

2015年(3)

2014年(17)

2012年(23)

2011年(5)

发布时间:2014-04-08 17:31:23

这篇文章汇总网络编程的各种函数接口,并以超链接的形式链接到具体函数使用说明文章上struct hostent *gethostbyname(const char *hostname);struct hostent *gethostbyaddr(const char *addr, socklen_t len, int family);struct servent *getservbyname(const char *servname, const *protoname);struct servent *.........【阅读全文】

阅读(1497) | 评论(0) | 转发(0)

发布时间:2014-04-08 15:47:08

#include #include struct hostent *gethostbyname(const char *name);     这个函数的传入值是域名或者主机名,例如"www.google.com"等等。传出值,是一个hostent的结构。如果函数调用失败,将返回NULL。struct h.........【阅读全文】

阅读(4283) | 评论(0) | 转发(1)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册