In the program to run to nearly two hours of time, found a strange phenomenon, PC program to receive a machine under the size of the 8192 b data, the six consecutive frames, each frame interval between 12-17 ms ms, and lower level computer programmer after communication, confirm the machine can't be in such a short time is generated so much data, and then myself and want to check the data
The situation may be:
Under a machine doesn't send data too fast PC processing, the data stored in the operating system, Windows network buffer, vb has time to take care of, will read the data from its own buffer, the data should move from the receive buffer within the operating system, Windows, vb's biggest receive buffer for 8192 b, so every time in a very short period of time (10 a few ms) received 8192 such long data,
I don't know what others think? Vc processing mechanism is also like this?
CodePudding user response:
Can't, like programming problems, there is a BUG.CodePudding user response:
Possible wisock biggest every time can only receive 8192 b over the length of the data in where? After must impossible in wisock buffer because Getdata winsock buffer is emptyCodePudding user response:
Must understand the concepts of data streams, 8192 bytes of data, several times random transmission, the receiver just read from the buffer is ok, but how the data segment, will need to advance their definition,