Re: [Twisted-Python] understanding IConsumer

2015-09-09 Thread Glyph Lefkowitz
The best way to come to a good understanding of IConsumer and IProducer is to write something that transfers large amounts of data over a slow, or heavily asymmetric link, and make sure its memory usage stays consistent; just implementing the methods on IConsumer won't be that illuminating. > O

Re: [Twisted-Python] understanding IConsumer

2015-09-09 Thread Roshan Cherian
Thanks Glyph for setting my understanding right on this. By create a consumer I meant having to write one purely to understand the concept and have one running example so that when looking at consumers like ProducerStream it will make my understanding more clear. Thanks, -Roshan On Wed, Sep 9, 20

Re: [Twisted-Python] understanding IConsumer

2015-09-09 Thread Glyph Lefkowitz
> On Sep 8, 2015, at 11:24 PM, Roshan Cherian > wrote: > > I understand there is > https://twistedmatrix.com/documents/15.4.0/core/howto/producers.html > , > however I was hoping if there is a

Re: [Twisted-Python] understanding IConsumer

2015-09-08 Thread Roshan Cherian
Hi Glyph and David, Thanks for your answers and thanks for taking time to answer. It was indeed my wrong understanding. I was trying to understand what HTTPClientChannelRequest does in terms of producer and consumer (Its a lot deep considering me being relatively new at this). Looking further at t

Re: [Twisted-Python] understanding IConsumer

2015-09-07 Thread Glyph
> On Sep 2, 2015, at 6:08 PM, Roshan Cherian wrote: > > Hi Team, Hi Roshan! Sorry it took a while to get back to you. Busy week. > I am sorry if this is coming off as a newbie question. Its probably because I > don't understand it enough. Newbie questions are fine, no need to apologize :).

Re: [Twisted-Python] understanding IConsumer

2015-09-03 Thread David Stainton
I'm not the best person to respond here but I think you should not want or need to implement your own consumer... Twisted transports and protocols are implemented using producers and consumers. On Thu, Sep 3, 2015 at 3:08 AM, Roshan Cherian wrote: > Hi Team, > > I am sorry if this is coming off a

[Twisted-Python] understanding IConsumer

2015-09-02 Thread Roshan Cherian
Hi Team, I am sorry if this is coming off as a newbie question. Its probably because I don't understand it enough. I would like to: 1. connectTCP to a host, port 2. use the transport to write 3. Use consumer to read from the transport what the tcp server has written to I wasn't able to find inf