Does anyone have a good example code of a file transfer with TClientSocket and TServerSocket? Or can any of the components in Borland C++ Builder 6 do the transfer of a filestream? I've checked almost all of them and did not find one to suit my needs.
I got the transfer working otherwise, but it sent the file too fast and the client could not receive the whole file. I tried to create a loop that would wait for the client to send a "ready"-signal to the server, but the loop won't break (it won't receive the signal, because the loop is so fast, I think...), so the transfer won't continue.
Any other ways to sync the transfer?