I'm trying to program a file sender/receiver for linux, I've done a basic one to send and receive from a computer to another and I want to go further. I've thought of using a queue, with the files, I'm sending and receiving the files in parts, my idea is to loop the queue sending and receiving until all the files are sent or received, I mean, send, receive and go back again with the same file is there's only one or do the same with the other file. Will that be a good way to do it? I've thought of forking, is it a good idea? dive the receiving and the sending.
Also, how could I measure the download and upload speed doing queues?
Thanks in advance