def getserverbysock(self, sockfd):
        with self.servers_lock:
            for name in self.servers:
                (host, port, sock) = self.servers[name]
                if sock is None:
                    continue
                if sock.fileno() == sockfd:
                    return (host, port, sock, name)
        raise KeyError, "socket fd %s not found" % sockfd
Perform the action that happens when the right arrow key is pressed.
dataset/ETHPy150Open coreemu/core/daemon/core/broker.py/CoreBroker.getserverbysock--crossover with--dataset/ETHPy150Open asweigart/pygcurse/pygcurse/__init__.py/PygcurseInput.rightarrow