MCPcopy Create free account
hub / github.com/AstroPrint/AstroBox / addr_to_python

Method addr_to_python

src/ext/pynetworkmanager/NetworkManager.py:692–696  ·  view source on GitHub ↗
(addr,family)

Source from the content-addressed store, hash-verified

690
691 @staticmethod
692 def addr_to_python(addr,family):
693 if (family == socket.AF_INET):
694 return socket.inet_ntop(family,struct.pack('I', addr))
695 else:
696 return socket.inet_ntop(family,b''.join(addr))
697
698 @staticmethod
699 def addr_to_dbus(addr,family):

Callers 3

to_pythonMethod · 0.80
addrconf_to_pythonMethod · 0.80
route_to_pythonMethod · 0.80

Calls 1

joinMethod · 0.80

Tested by

no test coverage detected