[Twisted-Python] Knowing end of packet

Glyph Lefkowitz glyph at twistedmatrix.com
Mon Sep 28 07:29:30 EDT 2009


On Mon, Sep 28, 2009 at 7:15 AM, gary clark <burslem2001 at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://twistedmatrix.com/pipermail/twisted-python/attachments/20090928/afff5b42/attachment.htm 


More information about the Twisted-Python mailing list