Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/EASY233/Finger
/ ip_num
Method
ip_num
lib/options.py:96–98 ·
view source on GitHub ↗
(self, ip)
Source
from the content-addressed store, hash-verified
94
exit(0)
95
96
def
ip_num(self, ip):
97
ip = [int(x)
for
x in ip.split(
'.'
)]
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,
Callers
1
get_ip
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected