On Mon, Sep 28, 2009 at 7:15 AM, gary clark <burslem2001@yahoo.com> wrote:
Hello,

I am sending a large amount of data to a twisted server. I want to know how
the protocol class knows that no more data is to be received.

I dont pass the length of the data in the packet, hence I'm looking for a termination field in the packet.Like </MESSAGE>.

I think this FAQ might help you:

http://twistedmatrix.com/trac/wiki/FrequentlyAskedQuestions#Whyisprotocol.dataReceivedcalledwithonlypartofthedataIcalledtransport.writewith

Let us know if that answers your question.