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

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?
-----Original Message----- From: twisted-python-bounces@twistedmatrix.com [mailto:twisted-python-bounces@twistedmatrix.com]On Behalf Of Grant McDonald Sent: 09 March 2005 16:56 To: 'twisted-python@twistedmatrix.com' Subject: [Twisted-Python] TCP Packet Size Considerations: Extra Info
After adding some code to report the transmission size i can confirm that 16837 bytes are sent and 8077 bytes are received via the previous code.
Regards,
Grant
Important notice: This message is intended for the individual(s) and entity(s) addressed. The information contained in this transmission and any attached, may be confidential and may also be the subject of legal privilege, public interest immunity or legal professional privilege. Any review, retransmission, dissemination or other use of, taking of any action in reliance upon this information by person or entities other than the recipient is prohibited and requires authorization from the sender. If you are not the addressee indicated in this message (or responsible for delivery of the message to such person) you may not copy or deliver this message to anyone. In such cases you should destroy this message and kindly notify the sender by reply email.
WARNING: Although Infocomp has taken reasonable precautions so that no viruses are present in this e-mail, the company cannot accept responsibility for any loss or damage arising from the use of e-mail attachments.

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 implementation.
participants (2)
-
Grant McDonald
-
Tommi Virtanen