

def register_tunnel_handler(self, tunnel_type, handler):
    " Any users of tunnels need to register a handler for a tunnel_type.\n            The handler will be called when a peer request a tunnel.\n            tunnel_type: string specify the tunnel usage, e.g. 'token'\n            handler: function that takes tunnel as argument and returns True if it accepts and False otherwise\n        "
    self.tunnel_handlers[handler] = handler

dataset/ETHPy150Open EricssonResearch/calvin-base/calvin/runtime/north/calvin_proto.py CalvinProto.register_tunnel_handler/VarMisuse@20/142 `tunnel_type`->`handler`