摘要: 1. getaddrinfo简介getaddrinfo可解析得到IPv6地址,而gethostbyname仅能得到IPv4地址。getaddrinfo在Python的socket包中,以下为python官网对getaddrinfo的解释:转自:http://docs.python.org/2/library/socket.htmlsocket.getaddrinfo(host, port[, family[, socktype[, proto[, flags]]]])Translate the host/port argument into a sequence of 5-tuples tha 阅读全文
posted @ 2013-05-28 16:51 myLittleGarden 阅读(14719) 评论(0) 推荐(0)