def login(self, passwd): """ send login request """ msg = "auth %s" % passwd req = request.LoginRequest() self.active_request = req self.transport.write("%s\n\n" % str(msg)) return req.getDeferred()
def login(self, passwd): """ send login request """ msg = "auth %s" % passwd req = request.LoginRequest() self.requestq.put(req) self.transport.write("%s\n\n" % msg) debug(">> %s" % msg) return req.getDeferred()