Beispiel #1
0
 def d_Key(self, key):
     if self.lock.startswith("EXTENDEDPROTOCOL"):
         self.sendLine("$Supports ADCGet TTHL TTHF")
     self.sendLine("$Direction Upload 12345")
     self.sendLine("$Key %s" % lock2key(self.lock))
     self.sendLine("$Error File Not Available")
     self.transport.loseConnection()
Beispiel #2
0
 def d_Key(self, key):
     if self.lock.startswith("EXTENDEDPROTOCOL"):
         self.sendLine("$Supports ADCGet TTHL TTHF")
     self.sendLine("$Direction Upload 12345")
     self.sendLine("$Key %s" % lock2key(self.lock))
     self.sendLine("$Error File Not Available")
     self.transport.loseConnection()
Beispiel #3
0
    def d_Lock(self, lock, pk):
        self.sendLine("$MyNick %s" % self.nick)
        self.sendLine("$Lock %s" % LOCK_STR)
        if lock.startswith("EXTENDEDPROTOCOL"):
            self.sendLine("$Supports ADCGet TTHL TTHF")
        self.sendLine("$Direction Upload 12345")
        self.sendLine("$Key %s" % lock2key(lock))

        self.addDispatch('$Key', -1, self.d_Key)
Beispiel #4
0
    def d_Lock(self, lock, pk):
        self.sendLine("$MyNick %s" % self.nick)
        self.sendLine("$Lock %s" % LOCK_STR)
        if lock.startswith("EXTENDEDPROTOCOL"):
            self.sendLine("$Supports ADCGet TTHL TTHF")
        self.sendLine("$Direction Upload 12345")
        self.sendLine("$Key %s" % lock2key(lock))

        self.addDispatch('$Key', -1, self.d_Key)