'Returns True if still connecting (this may encompass several
different states, such as SSL handshake, authorization, etc).'

def connecting(self):

    return (self.state in (ConnectionStates.CONNECTING, ConnectionStates.HANDSHAKE, ConnectionStates.AUTHENTICATING))
