摘要:
socket.getservbyname(servicename[, protocolname]) –> integer查询某个协议对应的端口号,需要使用两个参数,servicename对应端口名称,如 http, smtp,等。protocolname对应tcp,udp。s.getsockname()s.getpeername()getsockname: Return the address of the local endpoint. For IP sockets, the address info is a pair (hostaddr, port)getpeername: Ret 阅读全文
posted @ 2013-02-26 10:55
roicel
阅读(540)
评论(0)
推荐(1)

浙公网安备 33010602011771号