[Twisted-Python] producer / consumer question

Valentino Volonghi aka Dialtone dialtone at divmod.com
Wed Jul 4 13:15:38 EDT 2007

On Wed, 04 Jul 2007 18:13:05 +0200, Markus Schiltknecht <markus at bluegap.ch> wrote:
>I have yet another question...  a producer has to learn about it's consumer 
>somehow, otherwise it would not know where to write it's data to.
>But the proposed interface is exactly vice versa: the IConsumer interface 

>def associateProducerConsumer(prod, cons):
>     prod.consumer = cons
>     cons.registerProducer(prod, ISeekableProducer.providedBy(prod))

This question is also part of what I'm asking for here: 


I'd like some discussion and help and guidance too :).

More information about the Twisted-Python mailing list