def __init__(self, sasl_client_factory, mechanism, host, port): """ @param sasl_client_factory: a callable that returns a new sasl.Client object @param mechanism: the SASL mechanism (e.g. "GSSAPI") @param host: ip address or host name @param port: port """ TTornadoStreamTransport.__init__(self, host, port) self.sasl_client_factory = sasl_client_factory self.sasl = None self.mechanism = mechanism self.opened = False self.encode = None self.__wbuf = StringIO()