Ejemplo n.º 1
0
 def handle_read(self):
     TLSDispatcher.handle_read(self)
     if self.isOutbound and self.fullyEstablished:
         for s in self.streams:
             try:
                 with knownnodes.knownNodesLock:
                     knownnodes.knownNodes[s][self.destination]["lastseen"] = time.time()
             except KeyError:
                 pass
     receiveDataQueue.put(self.destination)
Ejemplo n.º 2
0
 def handle_read(self):
     TLSDispatcher.handle_read(self)
     if self.isOutbound and self.fullyEstablished:
         for s in self.streams:
             try:
                 with knownnodes.knownNodesLock:
                     knownnodes.knownNodes[s][self.destination]["lastseen"] = time.time()
             except KeyError:
                 pass
     receiveDataQueue.put(self.destination)
Ejemplo n.º 3
0
 def handle_read(self):
     """Callback for reading from a socket"""
     TLSDispatcher.handle_read(self)
     receiveDataQueue.put(self.destination)