Marvelous. Much appreciated. "from twisted.protocols.basic import NetstringReceiver"
Thanks, Garyc --- On Mon, 9/28/09, Glyph Lefkowitz <gl...@twistedmatrix.com> wrote: > From: Glyph Lefkowitz <gl...@twistedmatrix.com> > Subject: Re: [Twisted-Python] Knowing end of packet > To: "Twisted general discussion" <twisted-python@twistedmatrix.com> > Date: Monday, September 28, 2009, 6:29 AM > On Mon, Sep 28, > 2009 at 7:15 AM, gary clark <burslem2...@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. > > > > -----Inline Attachment Follows----- > > _______________________________________________ > Twisted-Python mailing list > Twisted-Python@twistedmatrix.com > http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python > _______________________________________________ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python