MCPcopy Create free account
hub / github.com/EASY233/Finger / num_ip

Method num_ip

lib/options.py:100–104  ·  view source on GitHub ↗
(self, num)

Source from the content-addressed store, hash-verified

98 return ip[0] << 24 | ip[1] << 16 | ip[2] << 8 | ip[3]
99
100 def num_ip(self, num):
101 return '%s.%s.%s.%s' % ((num & 0xff000000) >> 24,
102 (num & 0x00ff0000) >> 16,
103 (num & 0x0000ff00) >> 8,
104 num & 0x000000ff)
105

Callers 1

get_ipMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected