예제 #1
0
 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()
예제 #2
0
 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()