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

Method _handle_bye

wsdiscovery/discovery.py:88–97  ·  view source on GitHub ↗
(self, env, addr)

Source from the content-addressed store, hash-verified

86 self._remoteServiceHelloCallback(service)
87
88 def _handle_bye(self, env, addr):
89 #if the bye is from discovery proxy... revert back to multicasting
90 if self._dpActive and self._dpEPR == env.getEPR():
91 self._dpActive = False
92 self._dpAddr = None
93 self._dpEPR = None
94
95 self._removeRemoteService(env.getEPR())
96 if self._remoteServiceByeCallback is not None:
97 self._remoteServiceByeCallback(env.getEPR())
98
99
100 # handle local address changes:

Callers

nothing calls this directly

Calls 2

_removeRemoteServiceMethod · 0.95
getEPRMethod · 0.45

Tested by

no test coverage detected