MCPcopy Create free account
hub / github.com/andreikop/python-ws-discovery / addSourceAddr

Method addSourceAddr

wsdiscovery/threaded.py:444–449  ·  view source on GitHub ↗
(self, addr)

Source from the content-addressed store, hash-verified

442 self._serverStarted = False
443
444 def addSourceAddr(self, addr):
445 version = ipaddress.ip_address(addr).version
446 if version == 4:
447 self._networkingThread_v4.addSourceAddr(addr)
448 elif version == 6 and self._networkingThread_v6 is not None:
449 self._networkingThread_v6.addSourceAddr(addr)
450
451 def removeSourceAddr(self, addr):
452 version = ipaddress.ip_address(addr).version

Callers

nothing calls this directly

Calls 1

addSourceAddrMethod · 0.45

Tested by

no test coverage detected