def accept(self):
        """Accept a connection from the first socket which is ready
        to do so.
        """
        fd = self._poll()
        sock = self._sockmap[fd] if fd else self._socks[0]
        return sock.accept()
Accept a connection from the first socket which is ready
        to do so.
        
recipes/Python/578504_Server_supporting_IPv4_and_IPv6/recipe-578504.py