Hi
when I send 1000 byte with socket.send , I always recieve 1000 byte with socket.recieve.
I know it shouldn't be true for general but because 1000 bytes is a small amount can we be sure that it will not fragmented?
I tested it in visual studio and until 8KB every amount I sent, I got exactly the same amount and after that it didn't;
if enough data are provided is there a minimum amount on socket.available. for example because of packet size. I have heard that minimum packet size is 64, and default MTU(maximum transmit unit) in XP is 1500 bytes.
I use TCP and ethernet and actually the answer is very critical to me.
Thanks
Loading
Danatas GerviPosted Oct 26, 2009, 9:58 AM
By my opinion, they will not understand your question (I am not sure that I understand ;-) ).
As I know, the TCP protocol is very sophisticated thing. We, as programmers, are using only top-end of this interface…
How routing of TCP works, what is the size of one packet --- hidden by realization of TCP.
If I will send 1 byte – what should happen? I want to receive on other end 1 byte and no more! I do not care, that for do that TCP will send the packet with 512 bytes with system information…
Anyway, I can suggest reading something about TCP/IP standart…
programmerPosted Oct 26, 2009, 7:15 AM
The decision based on the answer to this question is very critcial. so it is very important for me to know the answer.
If I ask Microsft support and describe the situation is there any chance that they answer me?
Or Is there any chance to find someone in Microsoft visual studio team and ask about it?
Danatas GerviPosted Oct 26, 2009, 5:56 AM
You want a strange thing. You, as programmer on level of .NET environment should not know about this low-level protocol. Even, I can say, you must do not know! It's the problem of programmers of socket class, TCP protocol ets…
:-)