I have the following code:
Client side:
n=recv(sock,buf,1200,NULL);
Server side:
shutdown(sockk,SD_BOTH);
The problem is, the client side recv
is returning 0, meaning graceful shutdown. I need it to return -1 (I can't change the client side, I need to adapt my code to it.)
What can i do to cause it returning -1?