Transfer file get percentage complete
Going to create a program to transfer files between two different computers via sockets.
And the only problem I'm currently facing is trying to find a way to get the percentage complete.
One solution I figured was splitting parts and as I send them, update the percentage.
(First send information object with full size of file, name and so forth. Then as I send parts of the file it updates how much has been downloaded). Though I hope that there is a simpler method to do this, like getting access to the buffer or something when it is being filled..
Anyone have a example, or a link to an example which can help me out, I would appreciate it a lot.