'Connect to the XMPP server.
When no address is given, a SRV lookup for the server will
be attempted. If that fails, the server user in the JID
will be used.
:param address: A tuple containing the server\'s host and port.
:param reattempt: If ``True``, repeat attempting to connect if an
error occurs. Defaults to ``True``.
:param use_tls: Indicates if TLS should be used for the
connection. Defaults to ``True``.
:param use_ssl: Indicates if the older SSL connection method
should be used. Defaults to ``False``.'

def connect(self, address=tuple(), reattempt=True, use_tls=True, use_ssl=False):

    self.session_started_event.clear()
    if address:
        self.dns_service = None
    else:
        address = (self.boundjid.host, 5222)
        self.dns_service = u'xmpp-client'
    return XMLStream.connect(self, address[0], address[1], use_tls=use_tls, use_ssl=use_ssl, reattempt=reattempt)
