File transfer algorithms
In the past I have created a few simplistic programs that incorporated the transfer of files between users. I am thinking about creating another one but thought that before I start it I would ask a more knowledgable network programmer about what specifically would be the best way to transfer large files. Without any other tips I would do as before and create a buffer of some size and transfer blocks of that size. How big should each block be? Should there be additional information such as the expected size of the block with each transmission? I have also created things that transmit the size of the following buffer before each send...
Any thoughts are appreciated.