Skip to content
Snippets Groups Projects
Commit 14cc1bf0 authored by Abhisha Nirmalathas's avatar Abhisha Nirmalathas
Browse files

debug server rrsponse

parent 31fbfb90
No related branches found
No related tags found
No related merge requests found
......@@ -122,7 +122,8 @@ int main(int argc, char *argv[]){
while(1){
n = read(sockfd, buffer, 255);
printf("read n is %d\n", n);
if(!strcmp(buffer,"\n")){
printf("bufferrr %s\n\n",buffer);
if(!strncmp(buffer,"\n",1)){
buffer[n] = 0;
break;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment