Ejemplo n.º 1
0
 def main(self):
     while not self.done:
         data = self.conn.recv(2024)
         if not data:
             break
         self.buff.feed(data)
         for packet in self.buff:
             threaded(self._handle_packet, (packet,))
Ejemplo n.º 2
0
 def spawn_slaves(self, slavedefs):
     """
     `slavedefs` -- An iterable of (account, channel, password, direction) 
                    groups
     """
     for nick, pswd, facing in slavedefs:
         slave = SlaveBot(self, facing, self.server, self.port, nick, pswd, self.same_ip)
         #slave.set_channel(channel)
         threaded(slave.go, ())
         self.slavelist.append(slave)
Ejemplo n.º 3
0
 def main(self):
     if self.periodic_cbs:
         threaded(self.periodic, ())
     TMWAClient.main(self)