def Ip2Int(ip):
import struct,socket
return struct.unpack("!I",socket.inet_aton(ip))[0]
def Int2Ip(i):
import socket,struct
return socket.inet_ntoa(struct.pack("!I",i))
import struct,socket
return struct.unpack("!I",socket.inet_aton(ip))[0]
def Int2Ip(i):
import socket,struct
return socket.inet_ntoa(struct.pack("!I",i))