[Twisted-Python] TCP Packet Size Considerations: Extra Info

Tommi Virtanen tv at twistedmatrix.com
Wed Mar 9 02:17:45 EST 2005

Grant McDonald wrote:
> Now i do feel stupid! The documentation doesn't mention anything about
> sending multiple packets..... how can i tell if a packet is part of a
> multiple packet set?
> After looking at the output more carefully i realised that it was sending a
> packet the size of 8760 and 8077 which together total 16837.  Where is the
> information to say it is a split transmission?

You don't, and there is no such information. TCP is a stream of bytes.
If you want "packets", you need to provide them on top of the stream.
grep for twisted.protocols.basic.NetstringReceiver is one such

More information about the Twisted-Python mailing list