11-10-2010 12:41 PM
Is 114,000 bytes considered a large tcp/ip string and should I break up one single write into multiple smaller writes? Or does it not really matter? I don't know much about what tcp is doing on the low level in the background.
11-10-2010 02:47 PM
Don't worry about breaking it up; let your operating system's TCP stack handle that for you. It knows how large a packet should be and can combine multiple small writes into one larger one for the same destination, or split a large amount of data into appropriately-sized packets.
11-10-2010 02:52 PM
@nathand wrote:
Don't worry about breaking it up; let your operating system's TCP stack handle that for you. It knows how large a packet should be and can combine multiple small writes into one larger one for the same destination, or split a large amount of data into appropriately-sized packets.
Thank you Nathand!
"An answer from you is better than a guess from me."
The added beauty is error recovery if the network paths have to be reconfigured durring the transfer. TCP/IP guarentees they will be delivered intact or an error will be returned.
Ben