working on pause and resume
just some renaming of variables
changed the buffer size to 10 mb, instead of 30 mb. The maximum packet sent is normally about 8 mb. So TCP will split the packet in 8 mb segments anyway. This makes the mb/s more stable too.
some small changes
some refactoring, made a method for re-establishing a connection if the connection drops or you can't connect.
some more refactoring of tcp v5
re-connecting works. Will recursivly attempt to re-connect and send file every 30 sec for 5 min before giving up.
re-connecting seem to work, also re-connect and start transfering if the connection drops mid transfer. But how I append to the file after the connection restart I have yet to solve.
working resetting the connection if the connection drops and starting the transfer from where it stopped. Need more debugging ans testing.
some todo's and comments, doens't seem to send the pre-buffer correctly the second time around if connection drops in the middle. Need to fix that. Also re-calculate the md5 each time the connection re-connect. This is not nessesary.
generated form
Merge pull request #4 from kanekin/pause_and_resume

Pause and resume