hi all,
im currently doing a project on network file transfer. Im doing this using QTcpServer and QTcpSocket, e.i. I have a server and client application. Currently, ive been transfering files successfully, but sometimes some files are lost-due to network problems. The way i transfer file like this,
1. My application always check for an outgoing folder.
2. If there is a new file, i will open it using Qfile, then store the contents in a QByteArray
3. Write the contents of the bytearray to the socket
4. Finally, delete the file.
Now, my question is, is there a way for me to determine if the receiver application successfully received data before i will finnaly delete the source file. Because during file transfer, network problems may occur. Thank you very much and i hope for your suggestions.
Bookmarks