code: def allow_inbound_connection(self):
          
          LOGGER.debug("Determining whether inbound connection should "
                       "be allowed. num connections: %s max %s",
                       len(self._connections),
                       self._max_incoming_connections)
          return self._max_incoming_connections >= len(self._connections)
docs: Determines if an additional incoming network connection
          should be permitted.
  
          Returns:
              bool