(self)
| 328 | self.send(0, CMD_PING, 'chicken') |
| 329 | |
| 330 | def next_channel(self): |
| 331 | # channel 0 is special, so we never allocate it |
| 332 | for timeout in xrange(1024): |
| 333 | self.chani += 1 |
| 334 | if self.chani > MAX_CHANNEL: |
| 335 | self.chani = 1 |
| 336 | if not self.channels.get(self.chani): |
| 337 | return self.chani |
| 338 | |
| 339 | def amount_queued(self): |
| 340 | total = 0 |