def relay_connect_received(self, on_sock, relayer_nid, relayee_nid):
        if on_sock == IN and relayer_nid in self.channels_in or on_sock == OUT and relayer_nid in self.channels_out:
            if relayee_nid in self.channels_in:
                self.rl_relayees.setdefault(relayee_nid, set()).add(relayer_nid)
                self.rl_relayers.setdefault(relayer_nid, set()).add(relayee_nid)
                yield RelaySigConnected, on_sock, relayer_nid, relayee_nid
            else:
                yield RelaySigNodeDown, on_sock, relayer_nid, relayee_nid
dataset/ETHPy150Open eallik/spinoff/spinoff/remoting/hublogic.py/HubLogic.relay_connect_received/original