Esempio n. 1
0
 def dataReceived(self, data):
     """
     When gossip data is received.
     """
     debug("DATA RECEIVED BOOYAH!", success=True, threshold=1)
     if len(data) == 32:
         connections.assignTransport(data, self.transport)
     else:
         try:
             msg = message.buildMessage(data)
             msg.respond() # just respond polymorphically.
         except:
             debug(data, error=True)
Esempio n. 2
0
 def dataReceived(self, data):
     """
     Data received? this seems a little odd.
     """
     debug("Data received via client", strange=True, threshold=1)
     if len(data) == 32:
         connections.assignTransport(data, self.transport)
     else:
         try:
             msg = message.buildMessage(data)
             msg.respond()
         except:
             debug("data: " + data, error=True)
Esempio n. 3
0
 def dataReceived(self, data):
     """
     When gossip data is received.
     """
     debug("DATA RECEIVED BOOYAH!", success=True, threshold=1)
     if len(data) == 32:
         connections.assignTransport(data, self.transport)
     else:
         try:
             msg = message.buildMessage(data)
             msg.respond()  # just respond polymorphically.
         except:
             debug(data, error=True)
Esempio n. 4
0
 def dataReceived(self, data):
     """
     Data received? this seems a little odd.
     """
     debug("Data received via client", 
         strange=True, threshold=1)
     if len(data) == 32:
         connections.assignTransport(data, self.transport)
     else:
         try:
             msg = message.buildMessage(data)
             msg.respond()
         except:
             debug("data: " + data, error=True)