Home > Net >  The SOCKET to send data
The SOCKET to send data

Time:05-21

I want to ask next, I wrote a SOCKET TCP program, the local well
But on the server, will be less a few bytes, cause the file to open it,
Every time I am a Client to send 1024 bytes, the Server to accept is 1024 bytes, that is to say how many, how much I receive,
I didn't get any of baotou and so on, because every time I have to send out to the operation, so don't need those information,
The question now is, I send the past, there also have received, why lose bytes,
More than 200 KB to lose about 10 bytes, uncertain,

I check the information, the only what is said to half a pack, stick package, according to the reason I won't ah, how much Client to send, receive how much Server, I don't need to decide how many bytes, you how many bytes to me anyway to how many bytes

CodePudding user response:

Is in the middle of the data is lost or at the end of the lost data?

CodePudding user response:

reference 1st floor JDD1997 response:
is in the middle of the lost data or at the end of the lost data?
before a few times more, also lost in the middle

CodePudding user response:

Encountered this problem a few years ago, when screening the result is the packet loss without retransmission

And there is no packet loss locally, so there is no problem

CodePudding user response:

Then with a open source library called HP - Socket, solved the problem
  •  Tags:  
  • C#
  • Related