inet_ntop(), inet_pton() inet_ntoa(), inet_aton(), inet_addr, htons(), htonl(), ntohs(), ntohl() struct hostent ,struct sockaddr_in
摘要:
http://xuxiaozhao163.blog.163.com/blog/static/3793592200810182506818/#include const char *inet_ntop(int af, const void *src,char *dst, socklen_t size);int inet_pton(int af, const char *src, void *dst);Example// IPv4 demo of inet_ntop() and inet_pton()struct sockaddr_in sa;char str[INET_ADDRSTRLEN];/ 阅读全文
posted @ 2013-12-08 15:36 anfflee 阅读(1142) 评论(0) 推荐(0) 编辑