[Twisted-Python] Packet Fragmentation
Jean-Paul Calderone
exarkun at divmod.com
Thu Oct 9 08:30:14 EDT 2008
On Thu, 09 Oct 2008 13:27:51 +0200, Vincent Bernat <bernat at luffy.cx> wrote:
>OoO En cette nuit nuageuse du jeudi 09 octobre 2008, vers 00:51, Nima
>Ghanavatian <nimag at rogers.com> disait :
>
>> I was wondering if there's any way in Twisted/Python to handle packet
>> fragmentation. Can I access the last fragment flag in the TCP packet somehow?
>> Or is there a total packet size sent with the packet automatically?
>> If not, what would be the best way to solve this?
>
>You can also use a protocol that keeps message boundaries like UDP. UDP
>is reliable and deliver messages in order if used on
>localhost.
UDP is *not* reliable and will *not* necessarily deliver messages in order,
*even* if used on localhost. Please refer to Glyph's post.
Jean-Paul
More information about the Twisted-Python
mailing list