예제 #1
0
파일: client.py 프로젝트: gbour/twotp
 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
파일: node.py 프로젝트: gbour/twotp
 def send_connected(self, data):
     """
     Send during the connected state.
     """
     msg = thePacker.packInt(len(data)) + data
     self.transport.write(msg)