I have defined a record and want to transfer to a custom server using Delphi 5 built-in winsock VCL. The record
size is 5000 bytes or more. In local lan, it should be no problem. The server can receive the record completely in
triggering the ServerSocket1ClientRead event(TServerSocket) once time. However, if in the slow network, the ServerSocket1ClientRead event need triggering 2 or 3 times before I can get the complete record.(use receivebuf(TCustomWInSock) to get data)
In this situation, how can I know I get the data completely and concat the data getting in several time from the event so that I can assign back the data to my
defined record variable??