def getserverbysock(self, sockfd):
        ''' Return a (host, port, sock, name) tuple based on socket file 
            descriptor, or raise a KeyError exception.
        '''
        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
dataset/ETHPy150Open coreemu/core/daemon/core/broker.py/CoreBroker.getserverbysock/operator `==` -> `>=`