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

debug server

parent 14cc1bf0
Branches
No related tags found
No related merge requests found
......@@ -122,12 +122,13 @@ int main(int argc, char *argv[]){
while(1){
n = read(sockfd, buffer, 255);
printf("read n is %d\n", n);
printf("bufferrr %s\n\n",buffer);
printf("bufferrr %s and size if %d\n\n",buffer, strlen(buffer));
if(!strncmp(buffer,"\n",1)){
printf("is newline");
buffer[n] = 0;
break;
}
buffer[n] = 0;
// buffer[n] = 0;
}
buffer[n] = 0;
int responseDiffie = atoi(buffer);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment