Basically I'm connecting to a server.
I have the client reading in what the server says.
How can I tell when the server is done sending data?
Here is what I have
ThanksCode:while(recv(sockfd,buf,MAXDATASIZE-1,0)) { printf("%s",buf); } // but now, after it's done receiving i want to send something. //i just dont want to send while im still receiving.