'This checks how many random integers the client expects in return and
tells the producer to start generating the data.'

def lineReceived(self, line):

    count = int(line.strip())
    print(('Client    requested    %d    random    integers!' % count))
    producer = Producer(self, count)
    self.transport.registerProducer(producer, True)
    producer.resumeProducing()
