![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Socket
thmono
这个作者很懒,什么都没留下…
展开
-
gethostbyname()
/** example of gethostbyname() * usage ./a.out www.qq.com*/#include#include#include#include#include#include#includeint main(int argc, char *argv[]){ struct hostent* hostNa原创 2009-11-13 23:07:00 · 791 阅读 · 0 评论 -
get time in socketpair()
//note: the type of fork() is pid_t ,not int // the child pid is equal fork() ,while fork() is great than (pid_t)0// this example include socketpair() fork() strftime() localtime()#include#i原创 2009-11-17 20:29:00 · 481 阅读 · 0 评论 -
inet_ntoa()
//inet_ntoa.c//demonstration os inet_ntoa()#include#include#include#include#include#include#includeint main(int argc,char *argv[]){ struct sockaddr_in addr; int z,sockfd;原创 2009-11-28 23:32:00 · 881 阅读 · 0 评论 -
gethostbyname()
//name:gethostbyname.c //NOTE: h_addr_list[] conversion #include #include #include #include #include int main(int argc,char **argv) { struct hostent *hp;原创 2009-12-08 23:18:00 · 375 阅读 · 0 评论