You may consider using QNetworkAccessManager or QFtp which should do this work for you.
You may consider using QNetworkAccessManager or QFtp which should do this work for you.
==========================signature=============== ==================
S.O.L.I.D principles (use them!):
https://en.wikipedia.org/wiki/SOLID_...iented_design)
Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.
I have already created an application using QFtp, but my problem here is the transfer speed. So, i decided to convert it using TCP application which is faster in transfer speed - but here my problem is the accuracy coz as i have mentioned earlier some files are lost during file transfer. anyway thnks for ur suggestion...
This means that you should do the low-level transfer check yourself...
You could do this for examle this way:
- 1. New file is placed in outgoing folder
- 2. Client sends file
- 3. Client calculates checksum
- 4. Server calculates checksum
- 5. Server sends checksum to client
- 6. Client compares both checksums
- 7. If the checksums are not the same, the process starts again at point 2
- 8. Client removes file
It will be some work to get the checksum calculation right, but it might just work.
Good luck!
Could you quantify the problem? (i.e how slow the transfer really is with QFtp in respect to your TCP solution?but my problem here is the transfer speed
Its hard for me to imagine that your own protocol implementation will be that much more efficient (and still as good) as the Qt classes.
How did you test the performance?
Are you sure the performance bottle neck is not somewhere else in your application and not in the transfer it self?
At any rate, as the poster before me wrote, if you are using a non protocoled connection you will have to implement some sort of a protocol to check your data.
==========================signature=============== ==================
S.O.L.I.D principles (use them!):
https://en.wikipedia.org/wiki/SOLID_...iented_design)
Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.
Bookmarks