Пример #1
0
 def sendChallengeReply(self, challenge):
     """
     Send reply to challenge.
     """
     digest = self.generateDigest(challenge, self.factory.handler.cookie)
     self.challenge = self.generateChallenge()
     msg = "r" + thePacker.packInt(self.challenge) + digest
     self.send(msg)
Пример #2
0
 def send_connected(self, data):
     """
     Send during the connected state.
     """
     msg = thePacker.packInt(len(data)) + data
     self.transport.write(msg)