I need to send many chunks of a file through a socket ... while looping, the client need to check for incoming messages from the server.
if I use recv() for checking for incoming message, the program is blocked.Code:
//check for incoming message from server
if (message) then recv();
else then continue sending;
Is using poll() a good way to make it work ?