示例#1
0
def inet_ntoa(packed):
    bytes = raw.GetBytes(packed)
    ip = IPAddress(bytes)
    return str(ip)
示例#2
0
def convertNumToIP(ipNum):
    ipBytes = IPAddress.Parse(ipNum.ToString()).GetAddressBytes()
    Array.Reverse(ipBytes)
    return IPAddress(ipBytes).ToString()