def METHOD_NAME(self):
    """
    :return bool:
        Returns True if the connection was successful and False otherwise.
    """
    assert self._server_socket is not None, "start_listening must be called first."
    log.debug("Wating for connection for %s seconds." % (DEFAULT_TIMEOUT,))
    ret = self._connected_event.wait(DEFAULT_TIMEOUT)
    log.debug("Connected: %s" % (ret,))
    return ret