<div class="gmail_quote">On Mon, Sep 28, 2009 at 7:15 AM, gary clark <span dir="ltr">&lt;<a href="mailto:burslem2001@yahoo.com">burslem2001@yahoo.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello,<br>
<br>
I am sending a large amount of data to a twisted server. I want to know how<br>
the protocol class knows that no more data is to be received.<br>
<br>
I dont pass the length of the data in the packet, hence I&#39;m looking for a termination field in the packet.Like &lt;/MESSAGE&gt;.<br></blockquote><div><br>I think this FAQ might help you:<br><br><a href="http://twistedmatrix.com/trac/wiki/FrequentlyAskedQuestions#Whyisprotocol.dataReceivedcalledwithonlypartofthedataIcalledtransport.writewith">http://twistedmatrix.com/trac/wiki/FrequentlyAskedQuestions#Whyisprotocol.dataReceivedcalledwithonlypartofthedataIcalledtransport.writewith</a> <br>
</div></div><br>Let us know if that answers your question.<br><br>