[Twisted-Python] Streaming File Transfer Protocol?

exarkun at twistedmatrix.com exarkun at twistedmatrix.com
Wed Feb 10 13:32:24 MST 2010


On 07:23 pm, darren at ontrenet.com wrote:
>> From what I learned in other posts, the dataReceived(self, data): in 
>>the
>Echo server
>will get called with out-of-order data/bytes from the client. Of 
>course,
>I could be misinformed,
>but what I understood before was that in this type of Protocol, I would
>have to re-order
>and re-assemble the bytes.  And I'm trying to avoid that, since of
>course, TCP already does it.
>
>But like I said, I could have been misinformed because it seems pretty
>basic to write 1,2,3
>to a server and have it received 1,2,3, guaranteed.

Order is guaranteed, as long as you're using one of the TCP, SSL, or 
UNIX transports.

Jean-Paul




More information about the Twisted-Python mailing list