Home > Back-end > Delphi TClientSocket receives the data length is not stable
Delphi TClientSocket receives the data length is not stable
Time:09-21
Excuse me each warrior, have this kind of situation?? The server is a c # The client for Delphi, use TClientSocket, non-blocking mode
The problem is, when the client receives 10 data encrypted size in more than 2 k, each receiving is different, sometimes can be a one-time all received, sometimes can only receive twice, if it is the second case, the decryption will fail! Guide, o you who met warrior, what reason is this????? !!!!!!!!!!!!!!
CodePudding user response:
After read data written to the cache to achieve your request before processing (decryption)
CodePudding user response:
Problem may be, the client ClienDataSet matching with the server has a problem, 2 k data should be one-time can transmit and receive,