Reverse setup does not work
According to your setup, if I want to test a file transfer, I should run ./recvfile from receiver and ./sendfile from sender. In this setup ./recvfile listens for connections and ./sendfile connects to it and starts sending the data. Now the reverse setup [i.e ./sendfile listens for connections and sends data to every ./recvfile that connects to it] doesn't seem to work. This implementation is also present in the app folder of receiver and sender. I also changed the code of ./appserver and ./appclient so that ./appserver listens for connections and sends the data and ./appclient just connects to the ./appserver and receives the data and it doesn't work too. Can you provide some insight into why this is the case?