Hi to all,
I have founded a problem in my program; it is in this code:
I need that while ends when the client press enter.Code:i=0; charRecv = recv(nSocketDesc, &c, 1, 0); while (c !='\n') { mystring[i++]=c; charRecv = recv(nSocketDesc, &c, 1, 0); } // End while (c !='\n') mystring[i]='\0';
But don't happen therefore.Sure, I mistake the condition in while.
Please, someone can help me?
Thank You and Best Regards.
Nick