if I have a loop that is sending a large file to a server and I still want to send information via the same function and socket to the server without interrupting the file