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

Method envReceived

wsdiscovery/daemon.py:41–49  ·  view source on GitHub ↗
(self, env, addr)

Source from the content-addressed store, hash-verified

39 super().__init__(**kwargs)
40
41 def envReceived(self, env, addr):
42 action = env.getAction()
43 action_name = '_handle_' + action[action.rfind('/')+1:].lower()
44 try:
45 handler = getattr(self, action_name)
46 except AttributeError:
47 logger.warning("could not find handler for: %s" % action_name)
48 else:
49 handler(env, addr)
50
51 def _sendResolveMatch(self, service, relatesTo, addr):
52 env = constructResolveMatch(service, relatesTo)

Callers 1

_recvMessagesMethod · 0.80

Calls 2

handlerFunction · 0.85
getActionMethod · 0.80

Tested by

no test coverage detected