<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">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.</div><br class=""><div><blockquote type="cite" class=""><div class="">On Sep 9, 2015, at 7:36 PM, Roshan Cherian <<a href="mailto:cherian.rosh@gmail.com" class="">cherian.rosh@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">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.<div class=""><br class=""></div><div class="">Thanks,</div><div class="">-Roshan</div></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Wed, Sep 9, 2015 at 11:40 AM, Glyph Lefkowitz <span dir="ltr" class=""><<a href="mailto:glyph@twistedmatrix.com" target="_blank" class="">glyph@twistedmatrix.com</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word" class=""><span class=""><br class=""><div class=""><blockquote type="cite" class=""><div class="">On Sep 8, 2015, at 11:24 PM, Roshan Cherian <<a href="mailto:cherian.rosh@gmail.com" target="_blank" class="">cherian.rosh@gmail.com</a>> wrote:</div><br class=""><div class=""><div style="font-family:Menlo-Regular;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" class="">I understand there is <a href="https://twistedmatrix.com/documents/15.4.0/core/howto/producers.html" target="_blank" class="">https://twistedmatrix.com/documents/15.4.0/core/howto/producers.html</a>, however I was hoping if there is an example of a simple consumer which could be written using the data from dataReceived (that is assuming whatever I understood above is correct). I didn't find enough information on how to create a consumer.</div></div></blockquote></div><br class=""></span><div class="">What do you mean by "create a consumer"?  You already have an IConsumer created for you: your transport.  Do you want to implement your own?  For what reason?</div><span class="HOEnZb"><font color="#888888" class=""><div class=""><br class=""></div><div class="">-glyph</div><div class=""><br class=""></div></font></span></div><br class="">_______________________________________________<br class="">
Twisted-Python mailing list<br class="">
<a href="mailto:Twisted-Python@twistedmatrix.com" class="">Twisted-Python@twistedmatrix.com</a><br class="">
<a href="http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python" rel="noreferrer" target="_blank" class="">http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python</a><br class="">
<br class=""></blockquote></div><br class=""></div>
_______________________________________________<br class="">Twisted-Python mailing list<br class=""><a href="mailto:Twisted-Python@twistedmatrix.com" class="">Twisted-Python@twistedmatrix.com</a><br class="">http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python<br class=""></div></blockquote></div><br class=""></body></html>