views:

32

answers:

3

I just asked a question on how to send data larger than the SendBufferSize and the answer was that is would be send in a couple of parts.

My second question is how will this data be received? Will it be complete in the network stream or will it get it divided.

the first question: http://stackoverflow.com/questions/3097695/can-you-send-a-file-larger-that-the-sendbuffersize-throuh-a-tcpclient

+2  A: 

.Net handles the splitting of the data for you. You can write and receive packages larger than SendBufferSize without noticing it (if you aren't too concerned about performance).

FloE
A: 

You will need something called message framing in your protocol.

Fun fact: you'll need this even if sending a message smaller than SendBufferSize. :)

Stephen Cleary
A: 

Chances are your data is going to be split on receive so you'll need to rebuild it once you've received all the data.

Marcus