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